Update types for :params, :match_actor and :replace settings
authorAngelina Filippova <linakirsanova@gmail.com>
Sat, 11 Jul 2020 01:17:21 +0000 (04:17 +0300)
committerAngelina Filippova <linakirsanova@gmail.com>
Sat, 11 Jul 2020 01:17:21 +0000 (04:17 +0300)
config/description.exs

index 0a0a8e95c2e6fe8612c6a1919ed5af801a09f8d6..7f3ef535c8a9b611fcce34997cee2b7d01b7a655 100644 (file)
@@ -1521,7 +1521,7 @@ config :pleroma, :config_description, [
     children: [
       %{
         key: :match_actor,
-        type: :map,
+        type: {:map, {:list, :string}},
         description: "Matches a series of regular expressions against the actor field",
         suggestions: [
           %{
@@ -1601,7 +1601,7 @@ config :pleroma, :config_description, [
       },
       %{
         key: :replace,
-        type: {:keyword, :string, :regex},
+        type: {:list, :tuple},
         description:
           "A list of tuples containing {pattern, replacement}. Each pattern can be a string or a regular expression.",
         suggestions: [{"foo", "bar"}, {~r/foo/iu, "bar"}]
@@ -1802,7 +1802,7 @@ config :pleroma, :config_description, [
         children: [
           %{
             key: :params,
-            type: {:keyword, :string}
+            type: {:map, :string}
           }
         ]
       }