From b75e34253c6db399ba6df2ce77a68a0612508b8f Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 13 Nov 2020 15:23:00 +0000 Subject: [PATCH] Changed home timeline to be last 5 days instead of 30 --- app/models/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/status.rb b/app/models/status.rb index 0e3d355f..8dca56ec 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -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