forked from mirror/pixelfed
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) {
|
->map(function ($i) use($pe) {
|
||||||
return $pe ? StatusService::get($i) : StatusService::getMastodon($i);
|
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) {
|
->filter(function($i) use($onlyMedia) {
|
||||||
if(!$i) {
|
if(!$i) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -3160,6 +3157,9 @@ class ApiV1Controller extends Controller
|
||||||
}
|
}
|
||||||
return $i && isset($i['account']);
|
return $i && isset($i['account']);
|
||||||
})
|
})
|
||||||
|
->filter(function($i) use($filters) {
|
||||||
|
return !in_array($i['account']['id'], $filters);
|
||||||
|
})
|
||||||
->values()
|
->values()
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue