Filter outstanding follower requests from deactivated accounts
[akkoma] / lib / pleroma / following_relationship.ex
index 093b1f4050d62a94f70c865bc27262f2cb70b6ca..c2020d30a876a9169682f8271861d9e808165bf2 100644 (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