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
1 changed files with 6 additions and 0 deletions

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;