kopia lustrzana https://github.com/friendica/friendica
Merge pull request #9877 from annando/application-json
Accept "application/json" as application type for ActivityPubpull/9880/head
commit
43f0f6bbdc
|
@ -77,6 +77,7 @@ class ActivityPub
|
|||
public static function isRequest()
|
||||
{
|
||||
return stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/activity+json') ||
|
||||
stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/json') ||
|
||||
stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/ld+json');
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue