[CORE] Add option to filter notes even when there's no actor

This commit is contained in:
2021-12-21 10:34:04 -03:00
parent ce91826d31
commit dd5d46c556
4 changed files with 7 additions and 6 deletions

View File

@@ -49,9 +49,7 @@ abstract class FeedController extends Controller
if (\array_key_exists('notes', $result)) {
$notes = $result['notes'];
if (!\is_null($actor)) {
Event::handle('FilterNoteList', [$actor, &$notes]);
}
Event::handle('FilterNoteList', [$actor, &$notes, $result['request']]);
if ($result['should_format'] ?? true) {
$notes_out = null;