Add default config for keyword policy
authorrinpatch <rinpatch@sdf.org>
Fri, 8 Feb 2019 09:48:39 +0000 (12:48 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 8 Feb 2019 09:48:39 +0000 (12:48 +0300)
config/config.exs
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 8b42a53513626b0ee58d9c31e9375d29cafc728d..223ab0c52b9ad952480d0eb254477a17b40506e5 100644 (file)
@@ -238,6 +238,11 @@ config :pleroma, :mrf_simple,
   reject: [],
   accept: []
 
+config :pleroma, :mrf_keyword,
+  reject: [],
+  ftl_removal: [],
+  replace: []
+
 config :pleroma, :rich_media, enabled: true
 
 config :pleroma, :media_proxy,
index 7c24d4761af061e4c5bc34a13f31be0311739a22..8c7df5b90bf839cf9431d34363c1a68e81050a5e 100644 (file)
@@ -46,7 +46,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
 
     # This horror is needed to convert regex sigils to strings
     mrf_keyword =
-      Application.get_env(:pleroma, :mrf_keyword)
+      Application.get_env(:pleroma, :mrf_keyword, [])
       |> Enum.map(fn {key, value} ->
         {key,
          Enum.map(value, fn