Commit 409ff60b authored by Karen Konou's avatar Karen Konou

Fix formatting

parent 92362e1e
......@@ -163,7 +163,7 @@
allow_followersonly: false,
allow_direct: false
config :pleroma, :mrf_hellthreadmitigation, threshold: 10
config :pleroma, :mrf_hellthreadmitigation, threshold: 10
config :pleroma, :mrf_simple,
media_removal: [],
......
......@@ -3,13 +3,12 @@ defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do
@impl true
def filter(object) do
policy = Pleroma.Config.get(:mrf_hellthreadmitigation)
if (length(object["to"]) + length(object["cc"])) > Keyword.get(policy, :threshold) do
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
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment