mirror of
https://github.com/openvk/openvk
synced 2025-01-11 02:19:39 +03:00
ActivityPub: I actually broke it, lol
This commit is contained in:
parent
44f981909a
commit
d1528a6355
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ abstract class OpenVKPresenter extends SimplePresenter
|
||||||
function isActivityPubClient(): bool
|
function isActivityPubClient(): bool
|
||||||
{
|
{
|
||||||
$accept = explode(";", $_SERVER['HTTP_ACCEPT']);
|
$accept = explode(";", $_SERVER['HTTP_ACCEPT']);
|
||||||
return (bool) preg_match("/(application\/(ld\+json|activity\+json))/gm", $accept[0]);
|
return (bool) preg_match("/(application\/(ld\+json|activity\+json))/", $accept[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPersonContext()
|
function getPersonContext()
|
||||||
|
|
Loading…
Reference in a new issue