Skip to content

Commit

Permalink
Update ApiV1Controller, fix mutes in home feed
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Nov 7, 2023
1 parent d84c84c commit ddc2171
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Http/Controllers/Api/ApiV1Controller.php
Expand Up @@ -2155,6 +2155,12 @@ public function timelineHome(Request $request)
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;
Expand Down

0 comments on commit ddc2171

Please sign in to comment.