aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelina Filippova <linakirsanova@gmail.com>2020-07-11 04:17:21 +0300
committerAngelina Filippova <linakirsanova@gmail.com>2020-07-11 04:17:21 +0300
commit02b2747d420962445691d4bdbe171d95e7656e89 (patch)
treee9a34d0085057d57dca070f4d623da014d48c233
parentac9f18de11d3d0583dfae3c6b25c56828357624a (diff)
downloadpleroma-02b2747d420962445691d4bdbe171d95e7656e89.tar.gz
Update types for :params, :match_actor and :replace settings
-rw-r--r--config/description.exs6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/description.exs b/config/description.exs
index 0a0a8e95c..7f3ef535c 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -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}
}
]
}