From bd3fb4994a2999350c5bd5fa456a4e2f94649ebe Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Fri, 22 Jan 2021 00:09:26 -0500 Subject: [PATCH] [home feed] Still chipping away. --- app/models/home_feed.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/home_feed.rb b/app/models/home_feed.rb index ffa0926b..ee088fff 100644 --- a/app/models/home_feed.rb +++ b/app/models/home_feed.rb @@ -43,8 +43,12 @@ class HomeFeed < Feed order by s.created_at desc limit #{limit} ) st + left join statuses rb + on st.reblog_of_id = rb.id left join custom_filters cf - on cf.account_id = #{@id} and st.text like '%' || cf.phrase || '%' + on cf.account_id = #{@id} and ( + st.text like '%' || cf.phrase || '%' + or rb.text like '%' || cf.phrase || '%') where cf.id is null " # .reject { |status| FeedManager.instance.filter?(:home, status, @account.id) }