projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f328de8
)
user: use Enum.uniq on the follow request query
author
William Pitcock
<nenolod@dereferenced.org>
Sun, 27 May 2018 09:45:12 +0000
(09:45 +0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Mon, 11 Jun 2018 22:15:53 +0000
(22:15 +0000)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 35f3371ba17a858df16e3577ac84119f1d02595c..9c0cc74551e935797994c63141a8b01fce085d37 100644
(file)
--- 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}