Fix duplicate recipients
This commit is contained in:
parent
eba8acff09
commit
363e76d4da
|
@ -175,6 +175,7 @@ defp compose_query({:recipients_from_activity, to}, query) do
|
||||||
[u, following: f, relationships: r],
|
[u, following: f, relationships: r],
|
||||||
u.ap_id in ^to or (f.follower_address in ^to and r.state == "accept")
|
u.ap_id in ^to or (f.follower_address in ^to and r.state == "accept")
|
||||||
)
|
)
|
||||||
|
|> distinct(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp compose_query({:order_by, key}, query) do
|
defp compose_query({:order_by, key}, query) do
|
||||||
|
|
Loading…
Reference in New Issue