From 0a8b771af406c298689400650e3b1478d674b9ff Mon Sep 17 00:00:00 2001 From: veselcraft Date: Thu, 6 Jan 2022 14:34:51 +0300 Subject: [PATCH] ActivityPub: Fix Content-Type accept header --- Web/Presenters/OpenVKPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/OpenVKPresenter.php b/Web/Presenters/OpenVKPresenter.php index 1c9fdf08..198de158 100755 --- a/Web/Presenters/OpenVKPresenter.php +++ b/Web/Presenters/OpenVKPresenter.php @@ -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()