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;