Commit 4b5493ee authored by mgabdev's avatar mgabdev

Updated as_public_timeline to be date restricted

• Updated:
- as_public_timeline to be date restricted to only 1 day
parent 701bfa41
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment