Updated as_public_timeline to be date restricted

• Updated:
- as_public_timeline to be date restricted to only 5 days
This commit is contained in:
mgabdev 2020-05-22 12:46:47 -04:00
parent 08365cbead
commit f091e9a3d4
1 changed files with 1 additions and 2 deletions

View File

@ -342,8 +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 > ?', 5.days.ago)
apply_timeline_filters(query, account, local_only)
end