forked from GNUsocial/gnu-social
[CORE] Add option to filter notes even when there's no actor
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user