ActivityPub: Fix Content-Type accept header

This commit is contained in:
veselcraft 2022-01-06 14:34:51 +03:00
parent d0a38c8df1
commit 0a8b771af4
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -269,7 +269,7 @@ abstract class OpenVKPresenter extends SimplePresenter
function isActivityPubClient(): bool
{
$accept = explode(";", $_SERVER['HTTP_ACCEPT']);
return (bool) preg_match("/(application\/(ld\+json|activity\+json))/", $accept[0]);
return (bool) preg_match("/(application\/(ld\+json|activity\+json|json))/", $accept[0]);
}
function getPersonContext()