mirror of
https://github.com/openvk/openvk
synced 2025-01-11 02:19:39 +03:00
ActivityPub: The other instances actually cannot find the profiles, so i fixed that
This commit is contained in:
parent
12fc156113
commit
44f981909a
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ abstract class OpenVKPresenter extends SimplePresenter
|
||||||
|
|
||||||
function isActivityPubClient(): bool
|
function isActivityPubClient(): bool
|
||||||
{
|
{
|
||||||
return $_SERVER['HTTP_ACCEPT'] == 'application/activity+json';
|
$accept = explode(";", $_SERVER['HTTP_ACCEPT']);
|
||||||
|
return (bool) preg_match("/(application\/(ld\+json|activity\+json))/gm", $accept[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPersonContext()
|
function getPersonContext()
|
||||||
|
|
Loading…
Reference in a new issue