mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 09:17:03 +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) {
|
if(!$min && !$max) {
|
||||||
$id = 1;
|
$id = 1;
|
||||||
$dir = '>';
|
$dir = '>';
|
||||||
|
@ -3146,6 +3148,9 @@ 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;
|
||||||
|
|
Loading…
Reference in a new issue