diff options
author | lain <lain@soykaf.club> | 2020-08-03 21:01:56 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-03 21:01:56 +0000 |
commit | e3953923aca1706ab508bfda1ab892304b29c09a (patch) | |
tree | b665806e04571f6b27ddd777fc0d64a4f21751ca /config | |
parent | 56b5b9aa276c0a302c89dc7ca02c18fdc4645e56 (diff) | |
parent | cbf8bfc6942cbfbb5266a20d9929faf2e192ac70 (diff) | |
download | pleroma-e3953923aca1706ab508bfda1ab892304b29c09a.tar.gz |
Merge branch 'fixes_1957_add_option_to_send_user_chatmessage_instead_of_dm' into 'develop'
fixes 1957 Add option to send user chatmessage instead of dm
Closes #1957
See merge request pleroma/pleroma!2782
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 5 | ||||
-rw-r--r-- | config/description.exs | 29 |
2 files changed, 34 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs index 6acb38051..fa8051e40 100644 --- a/config/config.exs +++ b/config/config.exs @@ -261,6 +261,11 @@ config :pleroma, :welcome, sender_nickname: nil, message: nil ], + chat_message: [ + enabled: false, + sender_nickname: nil, + message: nil + ], email: [ enabled: false, sender: nil, diff --git a/config/description.exs b/config/description.exs index d623a9f75..ae2f6d23f 100644 --- a/config/description.exs +++ b/config/description.exs @@ -998,6 +998,35 @@ config :pleroma, :config_description, [ ] }, %{ + group: :chat_message, + type: :group, + descpiption: "Chat message settings", + children: [ + %{ + key: :enabled, + type: :boolean, + description: "Enables sends chat message for new user after registration" + }, + %{ + key: :message, + type: :string, + description: + "A message that will be sent to a newly registered users as a chat message", + suggestions: [ + "Hello, 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", |