summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-06-25 06:50:44 +0000
committerlain <lain@soykaf.club>2020-06-25 06:50:44 +0000
commit0e26ef2ab9061f51589fdb5149dee457203305e5 (patch)
tree524cfa45611b7460a1854a6bff809f1575da3ae0 /lib
parentae94fcc95f4ac105ed8c2b87dc36fbeea066866d (diff)
parent67ab5805536ed64ca842998bfd4b3b0e63d13dd3 (diff)
downloadpleroma-0e26ef2ab9061f51589fdb5149dee457203305e5.tar.gz
pleroma-0e26ef2ab9061f51589fdb5149dee457203305e5.zip
Merge branch 'fix/following-request-from-deactivated' into 'develop'
Filter outstanding follower requests from deactivated accounts Closes #1771 See merge request pleroma/pleroma!2682
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/following_relationship.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/following_relationship.ex b/lib/pleroma/following_relationship.ex
index 093b1f405..c2020d30a 100644
--- a/lib/pleroma/following_relationship.ex
+++ b/lib/pleroma/following_relationship.ex
@@ -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