Update ApiV1Controller, fix mutes in home feed

pull/4740/head
Daniel Supernault 1 year ago
parent d84c84c1e2
commit ddc217147c
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -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…
Cancel
Save