mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
AntiMentionSpamPolicy: remove followers check
This commit is contained in:
parent
64cacc3694
commit
02d8ce8f0b
1 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.AntiMentionSpamPolicy do
|
||||||
|
|
||||||
@behaviour Pleroma.Web.ActivityPub.MRF.Policy
|
@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_posted?(%User{} = u), do: u.note_count > 0
|
||||||
|
|
||||||
defp user_has_age?(%User{} = u) do
|
defp user_has_age?(%User{} = u) do
|
||||||
|
@ -17,7 +16,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.AntiMentionSpamPolicy do
|
||||||
end
|
end
|
||||||
|
|
||||||
defp good_reputation?(%User{} = u) do
|
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
|
end
|
||||||
|
|
||||||
# copied from HellthreadPolicy
|
# copied from HellthreadPolicy
|
||||||
|
|
Loading…
Reference in a new issue