diff options
author | Ilja <domainepublic@spectraltheorem.be> | 2020-08-02 15:54:59 +0200 |
---|---|---|
committer | Ilja <domainepublic@spectraltheorem.be> | 2020-08-02 15:54:59 +0200 |
commit | f671d7e68c77e5d41dd0716f48f387561efc3999 (patch) | |
tree | bc0dd5b322743634ff66acd19f6d3a1350a32ee3 /config | |
parent | 8ca993c789fb3d41450419fc49bfa22542368ba8 (diff) | |
download | pleroma-f671d7e68c77e5d41dd0716f48f387561efc3999.tar.gz |
Add welcome chatmessages
* I added the option in config/config.exs
* created a new module lib/pleroma/user/welcome_chat_message.ex
* Added it to the registration flow
* added to the cheatsheet
* added to the config/description.ex
* added to the Changelog.md
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 d31208c25..c0213612b 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 11fbe0d78..9c8cbacb5 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: [ + "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", |