From d1528a6355dfa095b99aa35960b461dd73de84c8 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Tue, 28 Dec 2021 16:38:02 +0300 Subject: [PATCH] ActivityPub: I actually broke it, lol --- 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 eec7359d..43800deb 100755 --- a/Web/Presenters/OpenVKPresenter.php +++ b/Web/Presenters/OpenVKPresenter.php @@ -266,7 +266,7 @@ abstract class OpenVKPresenter extends SimplePresenter function isActivityPubClient(): bool { $accept = explode(";", $_SERVER['HTTP_ACCEPT']); - return (bool) preg_match("/(application\/(ld\+json|activity\+json))/gm", $accept[0]); + return (bool) preg_match("/(application\/(ld\+json|activity\+json))/", $accept[0]); } function getPersonContext()