Skip to content

Commit c39b9af

Browse files
committed
Update HomeTimelineService, apply filters to feed warm logic
1 parent 386e64d commit c39b9af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Services/HomeTimelineService.php

+6
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ public static function warmCache($id, $force = false, $limit = 100, $returnIds =
7575

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

78+
$filters = UserFilterService::filters($id);
79+
80+
if($filters && count($filters)) {
81+
$following = array_diff($following, $filters);
82+
}
83+
7884
$ids = Status::where('id', '>', $minId)
7985
->whereIn('profile_id', $following)
8086
->whereNull(['in_reply_to_id', 'reblog_of_id'])

0 commit comments

Comments
 (0)