mirror of
https://github.com/openvk/openvk
synced 2024-11-15 03:31:18 +03:00
ActivityPub: Fix Content-Type accept header
This commit is contained in:
parent
d0a38c8df1
commit
0a8b771af4
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue