From: kPherox Date: Wed, 30 Oct 2019 06:40:25 +0000 (+0900) Subject: Fix duplicate recipients X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=363e76d4dac290f5f5081e95ad40f496ee81c1e5;p=akkoma Fix duplicate recipients --- diff --git a/lib/pleroma/user/query.ex b/lib/pleroma/user/query.ex index 2eda454bc..364bc1c89 100644 --- a/lib/pleroma/user/query.ex +++ b/lib/pleroma/user/query.ex @@ -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