allow_followersonly: false,
allow_direct: false
+config :pleroma, :mrf_hellthreadmitigation, threshold: 10
+
config :pleroma, :mrf_simple,
media_removal: [],
media_nsfw: [],
--- /dev/null
+defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do
+ @behaviour Pleroma.Web.ActivityPub.MRF
+
+ @impl true
+ def filter(object) do
+
+ policy = Pleroma.Config.get(:mrf_hellthreadmitigation)
+
+ if (length(object["to"]) + length(object["cc"])) > Keyword.get(policy, :threshold) do
+ {:reject, nil}
+ else
+ {:ok, object}
+ end
+ end
+end
\ No newline at end of file