Renamed the things

This commit is contained in:
Karen Konou 2018-12-23 11:14:29 +01:00
parent c92f91ffeb
commit c76179419d
3 changed files with 3 additions and 3 deletions

View file

@ -163,7 +163,7 @@
allow_followersonly: false, allow_followersonly: false,
allow_direct: false allow_direct: false
config :pleroma, :mrf_hellthreadmitigation, threshold: 10 config :pleroma, :mrf_hellthread, threshold: 10
config :pleroma, :mrf_simple, config :pleroma, :mrf_simple,
media_removal: [], media_removal: [],

View file

@ -121,7 +121,7 @@ This section is used to configure Pleroma-FE, unless ``:managed_config`` in ``:i
* `allow_followersonly`: whether to allow followers-only posts * `allow_followersonly`: whether to allow followers-only posts
* `allow_direct`: whether to allow direct messages * `allow_direct`: whether to allow direct messages
## :mrf_hellthreadmitigation ## :mrf_hellthread
* `threshold`: Number of mentioned users after which the message gets discarded as spam * `threshold`: Number of mentioned users after which the message gets discarded as spam
## :media_proxy ## :media_proxy

View file

@ -3,7 +3,7 @@ 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_hellthread)
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}