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
2b6cf7f8de
commit
f42c114058
1 changed files with 5 additions and 0 deletions
|
@ -3129,6 +3129,8 @@ class ApiV1Controller extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
$filters = UserFilterService::filters($request->user()->profile_id);
|
||||
|
||||
if(!$min && !$max) {
|
||||
$id = 1;
|
||||
$dir = '>';
|
||||
|
@ -3146,6 +3148,9 @@ 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;
|
||||
|
|
Loading…
Reference in a new issue