From ad7188fe920c5eaa21c38b5f7781a7ba22173b91 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 27 May 2018 09:45:12 +0000 Subject: [PATCH] user: use Enum.uniq on the follow request query --- lib/pleroma/user.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 35f3371ba..9c0cc7455 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -378,6 +378,7 @@ def get_follow_requests(%User{} = user) do users = Enum.map(reqs, fn (req) -> req.actor end) + |> Enum.uniq |> Enum.map(fn (ap_id) -> get_by_ap_id(ap_id) end) {:ok, users}