mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update ApiV1Controller, filter muted/blocked accounts from tag timeline.
This commit is contained in:
parent
607c64ae72
commit
79bcaadd49
1 changed files with 3 additions and 3 deletions
|
@ -3148,9 +3148,6 @@ class ApiV1Controller extends Controller
|
|||
->map(function ($i) use($pe) {
|
||||
return $pe ? StatusService::get($i) : StatusService::getMastodon($i);
|
||||
})
|
||||
->filter(function($i) use($filters) {
|
||||
return !in_array($i['account']['id'], $filters);
|
||||
})
|
||||
->filter(function($i) use($onlyMedia) {
|
||||
if(!$i) {
|
||||
return false;
|
||||
|
@ -3160,6 +3157,9 @@ class ApiV1Controller extends Controller
|
|||
}
|
||||
return $i && isset($i['account']);
|
||||
})
|
||||
->filter(function($i) use($filters) {
|
||||
return !in_array($i['account']['id'], $filters);
|
||||
})
|
||||
->values()
|
||||
->toArray();
|
||||
|
||||
|
|
Loading…
Reference in a new issue