ActivityPub: I actually broke it, lol

This commit is contained in:
veselcraft 2021-12-28 16:38:02 +03:00
parent 44f981909a
commit d1528a6355
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -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()