summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaren Konou <konoukaren@gmail.com>2018-12-22 23:32:38 +0100
committerKaren Konou <konoukaren@gmail.com>2018-12-22 23:32:38 +0100
commit409ff60bf87d40919ec8cfcbe054cb66b87ca972 (patch)
tree186b083399845ab078f2b3eee9f4af7276bf88a2 /lib
parent92362e1e22a3debfaf3275822519417ee8755a7a (diff)
downloadpleroma-409ff60bf87d40919ec8cfcbe054cb66b87ca972.tar.gz
pleroma-409ff60bf87d40919ec8cfcbe054cb66b87ca972.zip
Fix formatting
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex b/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex
index 0e0918126..edcbc5219 100644
--- a/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex
+++ b/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex
@@ -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