Updated as_public_timeline to be date restricted

• Updated:
- as_public_timeline to be date restricted to only 1 day
This commit is contained in:
mgabdev 2020-05-23 01:08:51 -04:00
parent 701bfa41df
commit 4b5493eeda

View File

@ -342,7 +342,7 @@ class Status < ApplicationRecord
end
def as_public_timeline(account = nil, local_only = false)
query = timeline_scope(local_only).without_replies
query = timeline_scope(local_only).without_replies.where('statuses.updated_at > ?', 1.days.ago)
apply_timeline_filters(query, account, local_only)
end