From e1a8d158d60e2dfd94e61334232629a154102118 Mon Sep 17 00:00:00 2001 From: azuregc7 Date: Sat, 6 Feb 2021 09:48:18 -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 45d05cdf..1a1c6ff8 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.created_ad desc + order by s.created_at desc limit #{limit} ) sid )