Accept "application/json" as application type for ActivityPub

2022.09-rc
Michael 2021-01-29 11:15:47 +00:00
rodzic 9a4128a5c8
commit b22d7452a3
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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');
}