Fix MRF policies to also work with Update
[akkoma] / lib / pleroma / web / activity_pub / mrf / hellthread_policy.ex
index 504bd4d57e56712209924b0f0c91259562d6d911..18704fc2c1a11225ec0e65fe107d2b47807093ad 100644 (file)
@@ -73,8 +73,8 @@ defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do
   end
 
   @impl true
-  def filter(%{"type" => "Create", "object" => %{"type" => object_type}} = message)
-      when object_type in ~w{Note Article} do
+  def filter(%{"type" => type, "object" => %{"type" => object_type}} = message)
+      when type in ~w{Create Update} and object_type in ~w{Note Article} do
     reject_threshold =
       Pleroma.Config.get(
         [:mrf_hellthread, :reject_threshold],