Updated home_feed.rb as_home_timeline date restriction again

• Updated:
- home_feed.rb as_home_timeline date restriction again
This commit is contained in:
mgabdev 2020-05-22 01:00:56 -04:00
parent 72df048f84
commit 3bfbfbf3d8

View File

@ -291,9 +291,9 @@ class Status < ApplicationRecord
end
def as_home_timeline(account)
query = where(account: [account] + account.following).without_replies
query = where('updated_at > ?', 30.days.ago)
query.where(visibility: [:public, :unlisted, :private])
query.where('updated_at > ?', 45.days.ago)
query.where(account: [account] + account.following).without_replies
end
def as_group_timeline(group)