Update ApiV1Controller, filter muted/blocked accounts from tag timeline.

This commit is contained in:
Daniel Supernault 2023-05-20 22:59:11 -06:00
parent 607c64ae72
commit 79bcaadd49
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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();