Notifications: change blocking/blockers queries to make notifications load again
This commit is contained in:
parent
c04afbbfb4
commit
faadb2f325
|
@ -138,7 +138,7 @@ defp exclude_blocked(query, user, opts) do
|
|||
blocked_ap_ids = opts[:blocked_users_ap_ids] || User.blocked_users_ap_ids(user)
|
||||
|
||||
query
|
||||
|> where([n, a], a.actor not in ^blocked_ap_ids)
|
||||
|> where([n, a], fragment("not (? && ?)", [a.actor], ^blocked_ap_ids))
|
||||
|> FollowingRelationship.keep_following_or_not_domain_blocked(user)
|
||||
end
|
||||
|
||||
|
@ -149,7 +149,7 @@ defp exclude_blockers(query, user) do
|
|||
blocker_ap_ids = User.incoming_relationships_ungrouped_ap_ids(user, [:block])
|
||||
|
||||
query
|
||||
|> where([n, a], a.actor not in ^blocker_ap_ids)
|
||||
|> where([n, a], fragment("not (? && ?)", [a.actor], ^blocker_ap_ids))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue