[ActivityPub] Always explicitly compare the results of `Event::handle` to the constants `next` or `stop`

This commit is contained in:
Hugo Sales 2021-10-28 17:28:02 +01:00
parent 86ac5c52a1
commit 4d9a5aae5a
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class ActivityPub extends Plugin
$response = FollowersResponse::handle($vars['actor']); $response = FollowersResponse::handle($vars['actor']);
return Event::stop;*/ return Event::stop;*/
default: default:
if (Event::handle('ActivityStreamsTwoResponse', [$route, &$response])) { if (Event::handle('ActivityStreamsTwoResponse', [$route, &$response]) == Event::stop) {
return Event::stop; return Event::stop;
} }
return Event::next; return Event::next;