[home] Home feed update to 21 days and always from database

This commit is contained in:
Fosco Marotto
2021-01-03 00:38:23 -05:00
parent ecb5c6554c
commit 46ceced444
2 changed files with 6 additions and 6 deletions

View File

@@ -290,7 +290,7 @@ class Status < ApplicationRecord
end
def as_home_timeline(account)
query = where('created_at > ?', 10.days.ago)
query = where('created_at > ?', 21.days.ago)
query.where(visibility: [:public, :unlisted]).or(
where(visibility: [:private]).where('group is null')
).or(