diff options
author | lain <lain@soykaf.club> | 2020-07-27 12:34:36 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-07-27 12:34:36 +0000 |
commit | 2a3abfd326f0cbb588dfe66a23e9783be3038a5e (patch) | |
tree | be613ab3be331362b94cb1181dd52a8831a2330e /config/description.exs | |
parent | 64b21cee1417347ddb2a7f7470eb1d7f235ea0ab (diff) | |
parent | 0d5d1c62efa94ea8fd204dbe4a77073b0374cad4 (diff) | |
download | pleroma-2a3abfd326f0cbb588dfe66a23e9783be3038a5e.tar.gz pleroma-2a3abfd326f0cbb588dfe66a23e9783be3038a5e.zip |
Merge branch 'issue/1934-welcome-email' into 'develop'
[#1934] welcome email
See merge request pleroma/pleroma!2786
Diffstat (limited to 'config/description.exs')
-rw-r--r-- | config/description.exs | 95 |
1 files changed, 78 insertions, 17 deletions
diff --git a/config/description.exs b/config/description.exs index a5e66f3fb..c303fc878 100644 --- a/config/description.exs +++ b/config/description.exs @@ -779,23 +779,6 @@ config :pleroma, :config_description, [ description: "Enable to automatically add attachment link text to statuses" }, %{ - key: :welcome_message, - type: :string, - description: - "A message that will be sent to a newly registered users as a direct message", - suggestions: [ - "Hi, @username! Welcome on board!" - ] - }, - %{ - key: :welcome_user_nickname, - type: :string, - description: "The nickname of the local user that sends the welcome message", - suggestions: [ - "lain" - ] - }, - %{ key: :max_report_comment_size, type: :integer, description: "The maximum size of the report comment. Default: 1000.", @@ -963,6 +946,84 @@ config :pleroma, :config_description, [ ] }, %{ + group: :welcome, + type: :group, + description: "Welcome messages settings", + children: [ + %{ + group: :direct_message, + type: :group, + descpiption: "Direct message settings", + children: [ + %{ + key: :enabled, + type: :boolean, + description: "Enables sends direct message for new user after registration" + }, + %{ + key: :message, + type: :string, + description: + "A message that will be sent to a newly registered users as a direct message", + suggestions: [ + "Hi, @username! Welcome on board!" + ] + }, + %{ + key: :sender_nickname, + type: :string, + description: "The nickname of the local user that sends the welcome message", + suggestions: [ + "lain" + ] + } + ] + }, + %{ + group: :email, + type: :group, + descpiption: "Email message settings", + children: [ + %{ + key: :enabled, + type: :boolean, + description: "Enables sends direct message for new user after registration" + }, + %{ + key: :sender, + type: [:string, :tuple], + description: + "The email address or tuple with `{nickname, email}` that will use as sender to the welcome email.", + suggestions: [ + {"Pleroma App", "welcome@pleroma.app"} + ] + }, + %{ + key: :subject, + type: :string, + description: + "The subject of welcome email. Can be use EEX template with `user` and `instance_name` variables.", + suggestions: ["Welcome to <%= instance_name%>"] + }, + %{ + key: :html, + type: :string, + description: + "The html content of welcome email. Can be use EEX template with `user` and `instance_name` variables.", + suggestions: ["<h1>Hello <%= user.name%>. Welcome to <%= instance_name%></h1>"] + }, + %{ + key: :text, + type: :string, + description: + "The text content of welcome email. Can be use EEX template with `user` and `instance_name` variables.", + suggestions: ["Hello <%= user.name%>. \n Welcome to <%= instance_name%>\n"] + } + ] + } + ] + }, + %{ group: :logger, type: :group, description: "Logger-related settings", |