mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Fix duplicate recipients
This commit is contained in:
parent
eba8acff09
commit
363e76d4da
1 changed files with 1 additions and 0 deletions
|
@ -175,6 +175,7 @@ defmodule Pleroma.User.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 a new issue