summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2023-05-22 15:50:34 -0500
committerMark Felder <feld@feld.me>2024-02-18 17:56:48 -0500
commit9b728b588e4a97266213d97cf96b2720988b0e22 (patch)
tree7caeebe8bf67c851745fafab3be609928c7fb68d
parent83db9e4254232c604463c8e185aadf4f3c441e42 (diff)
AntiMentionSpamPolicy: remove followers checkanti-mention-spam-mrf
-rw-r--r--lib/pleroma/web/activity_pub/mrf/anti_mention_spam_policy.ex3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/mrf/anti_mention_spam_policy.ex b/lib/pleroma/web/activity_pub/mrf/anti_mention_spam_policy.ex
index 0cb3313b2..9cdb2077f 100644
--- a/lib/pleroma/web/activity_pub/mrf/anti_mention_spam_policy.ex
+++ b/lib/pleroma/web/activity_pub/mrf/anti_mention_spam_policy.ex
@@ -8,7 +8,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.AntiMentionSpamPolicy do
@behaviour Pleroma.Web.ActivityPub.MRF.Policy
- defp user_has_followers?(%User{} = u), do: u.follower_count > 0
defp user_has_posted?(%User{} = u), do: u.note_count > 0
defp user_has_age?(%User{} = u) do
@@ -17,7 +16,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.AntiMentionSpamPolicy do
end
defp good_reputation?(%User{} = u) do
- user_has_age?(u) and user_has_followers?(u) and user_has_posted?(u)
+ user_has_age?(u) and user_has_posted?(u)
end
# copied from HellthreadPolicy