also allow JSON
This commit is contained in:
parent
6e2656311b
commit
bc7e173fe0
1 changed files with 2 additions and 1 deletions
|
@ -305,8 +305,9 @@ function is_activitypub_request() {
|
||||||
* and return true when the header includes at least one of the following:
|
* and return true when the header includes at least one of the following:
|
||||||
* - application/activity+json
|
* - application/activity+json
|
||||||
* - application/ld+json
|
* - application/ld+json
|
||||||
|
* - application/json
|
||||||
*/
|
*/
|
||||||
if ( preg_match( '/(application\/(ld\+json|activity\+json))/', $accept ) ) {
|
if ( preg_match( '/(application\/(ld\+json|activity\+json|json))/i', $accept ) ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue