From 4b5493eeda514dcbd59980166efbc32c820998e9 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Sat, 23 May 2020 01:08:51 -0400 Subject: [PATCH] Updated as_public_timeline to be date restricted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - as_public_timeline to be date restricted to only 1 day --- 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 bd268342..bef08885 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -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