diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index d72878e7d..d4e058300 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -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;