[COMPONENTS][Tag] Refactor Tag and add self tag stream

This commit is contained in:
2021-11-28 13:09:04 +00:00
committed by Diogo Peralta Cordeiro
parent 6680772e47
commit 5c3d561a67
10 changed files with 205 additions and 140 deletions

View File

@@ -372,7 +372,7 @@ abstract class Cache
$per_page = Common::config('streams', 'notes_per_page');
}
$filter_scope = fn (Note $n) => $n->isVisibleTo($actor);
$filter_scope = fn (Note|Actor $o) => $o->isVisibleTo($actor);
$getter = fn (int $offset, int $length) => DB::dql($query, $query_args, options: ['offset' => $offset, 'limit' => $length]);