Fix MRF policies to also work with Update
[akkoma] / lib / pleroma / web / activity_pub / mrf / mention_policy.ex
index 05b28e4f567a755a7c081d874e4d713405ae5d22..11e9bd4780f03997a6cb5dbdf2ab5e1b8fdec1de 100644 (file)
@@ -8,7 +8,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.MentionPolicy do
   @behaviour Pleroma.Web.ActivityPub.MRF.Policy
 
   @impl true
-  def filter(%{"type" => "Create"} = message) do
+  def filter(%{"type" => type} = message) when type in ["Create", "Update"] do
     reject_actors = Pleroma.Config.get([:mrf_mention, :actors], [])
     recipients = (message["to"] || []) ++ (message["cc"] || [])