[home feed] Another fix.
This commit is contained in:
parent
94a04d3b54
commit
8cc3f549e6
|
@ -26,6 +26,8 @@ class HomeFeed < Feed
|
||||||
select st.* from (
|
select st.* from (
|
||||||
select s.*
|
select s.*
|
||||||
from statuses s
|
from statuses s
|
||||||
|
left join statuses reblog
|
||||||
|
on s.reblog_of_id = reblog.id
|
||||||
where
|
where
|
||||||
s.created_at > NOW() - INTERVAL '7 days'
|
s.created_at > NOW() - INTERVAL '7 days'
|
||||||
and s.reply is false
|
and s.reply is false
|
||||||
|
@ -34,6 +36,8 @@ class HomeFeed < Feed
|
||||||
or s.account_id in (select target_account_id from follows where account_id = #{@id})
|
or s.account_id in (select target_account_id from follows where account_id = #{@id})
|
||||||
)
|
)
|
||||||
and s.account_id not in (select target_account_id from mutes where account_id = #{@id})
|
and s.account_id not in (select target_account_id from mutes where account_id = #{@id})
|
||||||
|
and reblog.account_id not in (select target_account_id from mutes where account_id = #{@id})
|
||||||
|
and reblog.account_id not in (select target_account_id from blocks where account_id = #{@id})
|
||||||
#{pagination_max}
|
#{pagination_max}
|
||||||
#{pagination_min}
|
#{pagination_min}
|
||||||
order by s.created_at desc
|
order by s.created_at desc
|
||||||
|
|
Loading…
Reference in New Issue