mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update HomeTimelineService, apply filters to feed warm logic
This commit is contained in:
parent
386e64d5e8
commit
c39b9afbfd
1 changed files with 6 additions and 0 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue