From 2baebbab183f7fb7002dfca77456bb96a852acde Mon Sep 17 00:00:00 2001 From: azuregc7 Date: Sat, 6 Feb 2021 09:45:34 -0800 Subject: [PATCH] [home] Changed sort back to created_ad after adding new index to accounts --- app/models/home_feed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/home_feed.rb b/app/models/home_feed.rb index cde19609..45d05cdf 100644 --- a/app/models/home_feed.rb +++ b/app/models/home_feed.rb @@ -40,7 +40,7 @@ class HomeFeed < Feed and not exists(select bb.target_account_id from blocks bb where bb.account_id = #{@id} and bb.target_account_id in (s.account_id, r.account_id)) #{pagination_max} #{pagination_min} - order by s.id desc + order by s.created_ad desc limit #{limit} ) sid )