Merge pull request #4398 from pixelfed/staging

Staging
This commit is contained in:
daniel 2023-05-20 22:59:23 -06:00 committed by GitHub
commit 9279771e94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -44,6 +44,7 @@
- Update StatusController, disable post embeds from spam accounts ([c167af43](https://github.com/pixelfed/pixelfed/commit/c167af43))
- Update ProfileController, require login to view spam accounts, and disable profile embeds and atom feeds for spam accounts ([dd2f5bb9](https://github.com/pixelfed/pixelfed/commit/dd2f5bb9))
- Update Settings, allow users to disable atom feeds ([3662d3de](https://github.com/pixelfed/pixelfed/commit/3662d3de))
- Update ApiV1Controller, filter muted/blocked accounts from tag timeline ([f42c1140](https://github.com/pixelfed/pixelfed/commit/f42c1140))
- ([](https://github.com/pixelfed/pixelfed/commit/))
## [v0.11.6 (2023-05-03)](https://github.com/pixelfed/pixelfed/compare/v0.11.5...v0.11.6)

View file

@ -3129,6 +3129,8 @@ class ApiV1Controller extends Controller
}
}
$filters = UserFilterService::filters($request->user()->profile_id);
if(!$min && !$max) {
$id = 1;
$dir = '>';
@ -3155,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();