mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:52:42 +08:00
FEATURE: add more granular user option levels for email notifications (#7143)
Migrates email user options to a new data structure, where `email_always`, `email_direct` and `email_private_messages` are replace by * `email_messages_level`, with options: `always`, `only_when_away` and `never` (defaults to `always`) * `email_level`, with options: `always`, `only_when_away` and `never` (defaults to `only_when_away`)
This commit is contained in:
@ -264,14 +264,13 @@ const User = RestModel.extend({
|
||||
);
|
||||
|
||||
let userOptionFields = [
|
||||
"email_always",
|
||||
"mailing_list_mode",
|
||||
"mailing_list_mode_frequency",
|
||||
"external_links_in_new_tab",
|
||||
"email_digests",
|
||||
"email_direct",
|
||||
"email_in_reply_to",
|
||||
"email_private_messages",
|
||||
"email_messages_level",
|
||||
"email_level",
|
||||
"email_previous_replies",
|
||||
"dynamic_favicon",
|
||||
"enable_quoting",
|
||||
|
Reference in New Issue
Block a user