mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-24 17:10:28 +00:00
Merge branch 'bugfix/duplicate-follow-requests' into 'develop'
user: filter out duplicate follow requests Closes #228 See merge request pleroma/pleroma!263
This commit is contained in:
commit
59b42531a3
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.map(reqs, fn req -> req.actor end)
|
||||||
|> Enum.uniq()
|
|> 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)
|
||||||
|
|> Enum.filter(fn u -> !following?(u, user) end)
|
||||||
|
|
||||||
{:ok, users}
|
{:ok, users}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue