Commit eaaf7013 authored by kaniini's avatar kaniini
Browse files

Merge branch 'fix/follow-requests-deleted-accounts' into 'develop'

user: check that the follow request actually has an active account associated with it

See merge request !623
parents b73a1a33 eb1a18d2
Pipeline #5951 passed with stages
in 3 minutes and 18 seconds
......@@ -495,6 +495,7 @@ def get_follow_requests(%User{} = 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 -> !is_nil(u) end)
|> Enum.filter(fn u -> !following?(u, user) end)
{:ok, users}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment