mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -15,12 +15,11 @@ class UserUpdater
|
||||
}
|
||||
|
||||
OPTION_ATTR = [
|
||||
:email_always,
|
||||
:mailing_list_mode,
|
||||
:mailing_list_mode_frequency,
|
||||
:email_digests,
|
||||
:email_direct,
|
||||
:email_private_messages,
|
||||
:email_level,
|
||||
:email_messages_level,
|
||||
:external_links_in_new_tab,
|
||||
:enable_quoting,
|
||||
:dynamic_favicon,
|
||||
|
||||
Reference in New Issue
Block a user