1
0
Fork 0
forked from mirrors/akkoma

Fix formatting

This commit is contained in:
Karen Konou 2018-12-22 23:32:38 +01:00
parent 92362e1e22
commit 409ff60bf8
2 changed files with 3 additions and 4 deletions

View file

@ -3,10 +3,9 @@ defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do
@impl true @impl true
def filter(object) do def filter(object) do
policy = Pleroma.Config.get(:mrf_hellthreadmitigation) 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} {:reject, nil}
else else
{:ok, object} {:ok, object}