From acea03da3879a949ada00eefcfa287d0397d7fda Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Sat, 23 Jan 2021 20:31:27 -0500 Subject: [PATCH] Disable mute phrases on the home timeline --- app/models/home_feed.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/models/home_feed.rb b/app/models/home_feed.rb index b5a7bc75..73d5c461 100644 --- a/app/models/home_feed.rb +++ b/app/models/home_feed.rb @@ -45,12 +45,13 @@ class HomeFeed < Feed ) 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 || '%' - or rb.text like '%' || cf.phrase || '%') - where cf.id is null or st.account_id = #{@id} " + # left join custom_filters cf + # on cf.account_id = #{@id} and ( + # st.text like '%' || cf.phrase || '%' + # or rb.text like '%' || cf.phrase || '%') + # where cf.id is null or st.account_id = #{@id} + #" # .reject { |status| FeedManager.instance.filter?(:home, status, @account.id) } # Status.as_home_timeline(@account) # .paginate_by_id(limit, max_id: max_id, since_id: since_id, min_id: min_id)