Make AntiLinkSpamPolicy history-aware
This commit is contained in:
parent
d877d2a4e7
commit
997f08b350
2 changed files with 32 additions and 4 deletions
|
|
@ -9,6 +9,9 @@ defmodule Pleroma.Web.ActivityPub.MRF.AntiLinkSpamPolicy do
|
|||
|
||||
require Logger
|
||||
|
||||
@impl true
|
||||
def history_awareness, do: :auto
|
||||
|
||||
# has the user successfully posted before?
|
||||
defp old_user?(%User{} = u) do
|
||||
u.note_count > 0 || u.follower_count > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue