Fix tagpolicy to also work with Update
[akkoma] / lib / pleroma / web / activity_pub / mrf / anti_link_spam_policy.ex
index 40b19c3ab2968d1bb67482c236e1d05fcac18471..ba7c8400bf8a8f3dfa877b2d79e126abb6ce2a80 100644 (file)
@@ -5,10 +5,13 @@
 defmodule Pleroma.Web.ActivityPub.MRF.AntiLinkSpamPolicy do
   alias Pleroma.User
 
-  @behaviour Pleroma.Web.ActivityPub.MRF
+  @behaviour Pleroma.Web.ActivityPub.MRF.Policy
 
   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