user: use Enum.uniq on the follow request query
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 27 May 2018 09:45:12 +0000 (09:45 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Mon, 11 Jun 2018 22:15:53 +0000 (22:15 +0000)
lib/pleroma/user.ex

index 35f3371ba17a858df16e3577ac84119f1d02595c..9c0cc74551e935797994c63141a8b01fce085d37 100644 (file)
@@ -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}