Update HomeTimelineService, apply filters to feed warm logic

This commit is contained in:
Daniel Supernault 2023-11-12 23:53:22 -07:00
parent 386e64d5e8
commit c39b9afbfd
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,12 @@ class HomeTimelineService
$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'])