Fix duplicate recipients

This commit is contained in:
kPherox 2019-10-30 15:40:25 +09:00
parent eba8acff09
commit 363e76d4da

View file

@ -175,6 +175,7 @@ defmodule Pleroma.User.Query do
[u, following: f, relationships: r],
u.ap_id in ^to or (f.follower_address in ^to and r.state == "accept")
)
|> distinct(true)
end
defp compose_query({:order_by, key}, query) do