rename ftl_removal to federated_timeline_removal to keep consistent naming with Simpl...
authorrinpatch <rinpatch@sdf.org>
Fri, 8 Feb 2019 10:12:09 +0000 (13:12 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 8 Feb 2019 10:12:09 +0000 (13:12 +0300)
config/config.exs
docs/config.md
lib/pleroma/web/activity_pub/mrf/keyword_policy.ex

index 223ab0c52b9ad952480d0eb254477a17b40506e5..33bb4b015f00269733f0ef97d601bd31eedbf6e9 100644 (file)
@@ -240,7 +240,7 @@ config :pleroma, :mrf_simple,
 
 config :pleroma, :mrf_keyword,
   reject: [],
-  ftl_removal: [],
+  federated_timeline_removal: [],
   replace: []
 
 config :pleroma, :rich_media, enabled: true
index 55d618925f978198a02f7ea3bd27fbf2cca01169..c0eb4ceb4ff636ae50ac5e44ea4f73e1ab262e07 100644 (file)
@@ -153,7 +153,7 @@ This section is used to configure Pleroma-FE, unless ``:managed_config`` in ``:i
 
 ## :mrf_keyword
 * `reject`: A list of patterns which result in message being rejected, each pattern can be a string or a [regular expression](https://hexdocs.pm/elixir/Regex.html)
-* `ftl_removal`: A list of patterns which result in message being removed from federated timelines(a.k.a unlisted), each pattern can be a string or a [regular expression](https://hexdocs.pm/elixir/Regex.html)
+* `federated_timeline_removal`: A list of patterns which result in message being removed from federated timelines(a.k.a unlisted), each pattern can be a string or a [regular expression](https://hexdocs.pm/elixir/Regex.html)
 * `replace`: A list of tuples containing `{pattern, replacement`, `pattern` can be a string or a [regular expression](https://hexdocs.pm/elixir/Regex.html)
 
 ## :media_proxy
index 6e2673e9c04cea00c709b13d4772bcd4a6135271..073b8637259e56406ddbd195a68a0c6139f25cfe 100644 (file)
@@ -24,7 +24,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.KeywordPolicy do
 
   defp check_ftl_removal(%{"to" => to, "object" => %{"content" => content}} = message) do
     if "https://www.w3.org/ns/activitystreams#Public" in to and
-         Enum.any?(Pleroma.Config.get([:mrf_keyword, :ftl_removal]), fn pattern ->
+         Enum.any?(Pleroma.Config.get([:mrf_keyword, :federated_timeline_removal]), fn pattern ->
            string_matches?(content, pattern)
          end) do
       to = List.delete(to, "https://www.w3.org/ns/activitystreams#Public")