Add textarea type

This commit is contained in:
Angelina Filippova 2021-03-28 01:58:36 +03:00
parent 5835f6d0a4
commit 481f63a9a7

View File

@ -462,38 +462,6 @@ config :pleroma, :config_description, [
}, },
%{ %{
group: :pleroma, group: :pleroma,
key: :uri_schemes,
tab: :instance,
label: "URI Schemes",
type: :group,
description: "URI schemes related settings",
children: [
%{
key: :valid_schemes,
type: {:list, :string},
description: "List of the scheme part that is considered valid to be an URL",
suggestions: [
"https",
"http",
"dat",
"dweb",
"gopher",
"hyper",
"ipfs",
"ipns",
"irc",
"ircs",
"magnet",
"mailto",
"mumble",
"ssb",
"xmpp"
]
}
]
},
%{
group: :pleroma,
key: :instance, key: :instance,
tab: :instance, tab: :instance,
type: :group, type: :group,
@ -944,6 +912,38 @@ config :pleroma, :config_description, [
}, },
%{ %{
group: :pleroma, group: :pleroma,
key: :uri_schemes,
tab: :instance,
label: "URI Schemes",
type: :group,
description: "URI schemes related settings",
children: [
%{
key: :valid_schemes,
type: {:list, :string},
description: "List of the scheme part that is considered valid to be an URL",
suggestions: [
"https",
"http",
"dat",
"dweb",
"gopher",
"hyper",
"ipfs",
"ipns",
"irc",
"ircs",
"magnet",
"mailto",
"mumble",
"ssb",
"xmpp"
]
}
]
},
%{
group: :pleroma,
key: :welcome, key: :welcome,
tab: :instance, tab: :instance,
type: :group, type: :group,
@ -961,7 +961,7 @@ config :pleroma, :config_description, [
}, },
%{ %{
key: :message, key: :message,
type: :string, type: :textarea,
description: "A message that will be sent to newly registered users", description: "A message that will be sent to newly registered users",
suggestions: [ suggestions: [
"Hi, @username! Welcome on board!" "Hi, @username! Welcome on board!"
@ -989,7 +989,7 @@ config :pleroma, :config_description, [
}, },
%{ %{
key: :message, key: :message,
type: :string, type: :textarea,
description: description:
"A message that will be sent to newly registered users as a chat message", "A message that will be sent to newly registered users as a chat message",
suggestions: [ suggestions: [
@ -2899,8 +2899,8 @@ config :pleroma, :config_description, [
key: :activity_pub, key: :activity_pub,
type: :integer, type: :integer,
description: description:
"Activity pub routes (except question activities). Default: `nil` (no expiration).", "Activity pub routes (except question activities).",
suggestions: [nil] suggestions: [0]
}, },
%{ %{
key: :activity_pub_question, key: :activity_pub_question,