Update types for :params, :match_actor and :replace settings

This commit is contained in:
Angelina Filippova 2020-07-11 04:17:21 +03:00
parent ac9f18de11
commit 02b2747d42
1 changed files with 3 additions and 3 deletions

View File

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