mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update ApiV1Controller, fix mutes in home feed
This commit is contained in:
parent
d84c84c1e2
commit
ddc217147c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue