Updated as_public_timeline to be date restricted

Updated:
- as_public_timeline to be date restricted to only 30 minutes
This commit is contained in:
mgabdev 2020-05-27 17:59:15 -04:00
parent d007bb833c
commit 6d330716cd
1 changed files with 1 additions and 1 deletions

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.where('statuses.updated_at > ?', 1.days.ago)
query = timeline_scope(local_only).without_replies.where('statuses.updated_at > ?', 30.minutes.ago)
apply_timeline_filters(query, account, local_only)
end