From: William Pitcock Date: Sun, 27 May 2018 09:45:12 +0000 (+0000) Subject: user: use Enum.uniq on the follow request query X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=ad7188fe920c5eaa21c38b5f7781a7ba22173b91;p=akkoma user: use Enum.uniq on the follow request query --- 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 @@ defmodule Pleroma.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}