Commit b75e3425 authored by admin's avatar admin

Changed home timeline to be last 5 days instead of 30

parent 62515bba
......@@ -302,7 +302,7 @@ class Status < ApplicationRecord
end
def as_home_timeline(account)
query = where('updated_at > ?', 30.days.ago)
query = where('updated_at > ?', 5.days.ago)
query.where(visibility: [:public, :unlisted, :private])
query.where(account: [account] + account.following).without_replies
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