Commit f091e9a3 authored by mgabdev's avatar mgabdev

Updated as_public_timeline to be date restricted

• Updated:
- as_public_timeline to be date restricted to only 5 days
parent 08365cbe
......@@ -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
......
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