[home] Changed sort back to created_ad after adding new index to accounts

This commit is contained in:
azuregc7 2021-02-06 09:48:18 -08:00
parent 2baebbab18
commit e1a8d158d6
1 changed files with 1 additions and 1 deletions

View File

@ -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)) 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_max}
#{pagination_min} #{pagination_min}
order by s.created_ad desc order by s.created_at desc
limit #{limit} limit #{limit}
) sid ) sid
) )