Skip to content

Commit

Permalink
Update HomeTimelineService, apply filters to feed warm logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Nov 13, 2023
1 parent 386e64d commit c39b9af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/Services/HomeTimelineService.php
Expand Up @@ -75,6 +75,12 @@ public static function warmCache($id, $force = false, $limit = 100, $returnIds =

$minId = SnowflakeService::byDate(now()->subMonths(6));

$filters = UserFilterService::filters($id);

if($filters && count($filters)) {
$following = array_diff($following, $filters);
}

$ids = Status::where('id', '>', $minId)
->whereIn('profile_id', $following)
->whereNull(['in_reply_to_id', 'reblog_of_id'])
Expand Down

0 comments on commit c39b9af

Please sign in to comment.