mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-24 02:02:19 +00:00
user: use Enum.uniq on the follow request query
This commit is contained in:
parent
f328de8eb7
commit
ad7188fe92
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue