Filter outstanding follower requests from deactivated accounts

This commit is contained in:
Mark Felder 2020-06-24 17:18:53 -05:00
commit 67ab580553
2 changed files with 11 additions and 0 deletions

View file

@ -124,6 +124,7 @@ defmodule Pleroma.FollowingRelationship do
|> join(:inner, [r], f in assoc(r, :follower))
|> where([r], r.state == ^:follow_pending)
|> where([r], r.following_id == ^id)
|> where([r, f], f.deactivated != true)
|> select([r, f], f)
|> Repo.all()
end