[ActivityPub] Always explicitly compare the results of Event::handle
to the constants next
or stop
This commit is contained in:
parent
86ac5c52a1
commit
4d9a5aae5a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user