forked from AkkomaGang/akkoma
user: use Enum.uniq on the follow request query
This commit is contained in:
parent
f328de8eb7
commit
ad7188fe92
1 changed files with 1 additions and 0 deletions
|
@ -378,6 +378,7 @@ def get_follow_requests(%User{} = user) do
|
||||||
|
|
||||||
users =
|
users =
|
||||||
Enum.map(reqs, fn (req) -> req.actor end)
|
Enum.map(reqs, fn (req) -> req.actor end)
|
||||||
|
|> Enum.uniq
|
||||||
|> Enum.map(fn (ap_id) -> get_by_ap_id(ap_id) end)
|
|> Enum.map(fn (ap_id) -> get_by_ap_id(ap_id) end)
|
||||||
|
|
||||||
{:ok, users}
|
{:ok, users}
|
||||||
|
|
Loading…
Reference in a new issue