Changed home timeline to be last 5 days instead of 30

This commit is contained in:
admin 2020-11-13 15:23:00 +00:00
parent 62515bbaee
commit b75e34253c

View File

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