diff options
author | Karen Konou <konoukaren@gmail.com> | 2018-12-23 11:14:29 +0100 |
---|---|---|
committer | Karen Konou <konoukaren@gmail.com> | 2018-12-23 11:14:29 +0100 |
commit | c76179419d5d4bb2423496856ad931974b56d6d5 (patch) | |
tree | 1fd4514ea983537aad4f23f101f5f8ba8bf12643 | |
parent | c92f91ffebd848b7b9840b238d72455db285d564 (diff) | |
download | pleroma-c76179419d5d4bb2423496856ad931974b56d6d5.tar.gz pleroma-c76179419d5d4bb2423496856ad931974b56d6d5.zip |
Renamed the things
-rw-r--r-- | config/config.exs | 2 | ||||
-rw-r--r-- | docs/config.md | 2 | ||||
-rw-r--r-- | lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/config/config.exs b/config/config.exs index 5e1006f50..4b8762761 100644 --- a/config/config.exs +++ b/config/config.exs @@ -163,7 +163,7 @@ config :pleroma, :mrf_rejectnonpublic, allow_followersonly: false, allow_direct: false -config :pleroma, :mrf_hellthreadmitigation, threshold: 10 +config :pleroma, :mrf_hellthread, threshold: 10 config :pleroma, :mrf_simple, media_removal: [], diff --git a/docs/config.md b/docs/config.md index 819ac91f8..728916f82 100644 --- a/docs/config.md +++ b/docs/config.md @@ -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_direct`: whether to allow direct messages -## :mrf_hellthreadmitigation +## :mrf_hellthread * `threshold`: Number of mentioned users after which the message gets discarded as spam ## :media_proxy diff --git a/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex b/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex index edcbc5219..d5aa2b988 100644 --- a/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex @@ -3,7 +3,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.HellthreadPolicy do @impl true 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 {:reject, nil} |