mirror of
https://github.com/jtomchak/akkoma.git
synced 2025-01-19 06:06:05 +01:00
user: filter out duplicate follow requests
This commit is contained in:
parent
d7368ea272
commit
275c42e438
1 changed files with 1 additions and 0 deletions
|
@ -398,6 +398,7 @@ defmodule Pleroma.User do
|
|||
Enum.map(reqs, fn req -> req.actor end)
|
||||
|> Enum.uniq()
|
||||
|> Enum.map(fn ap_id -> get_by_ap_id(ap_id) end)
|
||||
|> Enum.filter(fn u -> !following?(u, user) end)
|
||||
|
||||
{:ok, users}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue