1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update ApiV1Controller, fix mutes in home feed

This commit is contained in:
Daniel Supernault 2023-11-07 02:24:52 -07:00
parent d84c84c1e2
commit ddc217147c
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -2155,6 +2155,12 @@ class ApiV1Controller extends Controller
return $following->push($pid)->toArray();
});
$muted = UserFilterService::mutes($pid);
if($muted && count($muted)) {
$following = array_diff($following, $muted);
}
if($min || $max) {
$dir = $min ? '>' : '<';
$id = $min ?? $max;