Updated home timeline in Status.rb to find from max 3 days ago

• Updated:
- home timeline in Status.rb to find from max 3 days ago
This commit is contained in:
mgabdev 2021-01-11 03:29:07 -05:00
parent 8d092d427f
commit 31de5a0a2d

View File

@ -290,7 +290,7 @@ class Status < ApplicationRecord
end
def as_home_timeline(account)
query = where('created_at > ?', 5.days.ago)
query = where('created_at > ?', 3.days.ago)
query.where(account: [account] + account.following).without_replies
end