mirror of
https://github.com/openvk/openvk
synced 2025-01-10 18:10:03 +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
|
||||
{
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue