From 4d9a5aae5ad5e267306c7344367693cd97e30948 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Thu, 28 Oct 2021 17:28:02 +0100 Subject: [PATCH] [ActivityPub] Always explicitly compare the results of `Event::handle` to the constants `next` or `stop` --- plugins/ActivityPub/ActivityPub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ActivityPub/ActivityPub.php b/plugins/ActivityPub/ActivityPub.php index 8a2e39beb7..d4a9c853ad 100644 --- a/plugins/ActivityPub/ActivityPub.php +++ b/plugins/ActivityPub/ActivityPub.php @@ -133,7 +133,7 @@ class ActivityPub extends Plugin $response = FollowersResponse::handle($vars['actor']); return Event::stop;*/ default: - if (Event::handle('ActivityStreamsTwoResponse', [$route, &$response])) { + if (Event::handle('ActivityStreamsTwoResponse', [$route, &$response]) == Event::stop) { return Event::stop; } return Event::next;