[home feed] Still chipping away.

This commit is contained in:
Fosco Marotto 2021-01-22 00:09:26 -05:00
parent 8cc3f549e6
commit bd3fb4994a
1 changed files with 5 additions and 1 deletions

View File

@ -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) }