mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: set mailing_list_mode to false when unsubscribing from all (#10354)
Currently, we only reset `email_digests`, `email_level` and `email_messages_level` when the user wants to unsubscribe from all email. `mailing_list_mode` should be reset as well
This commit is contained in:

committed by
GitHub

parent
3f054d3350
commit
515699776b
@ -100,7 +100,8 @@ class EmailController < ApplicationController
|
||||
if params["unsubscribe_all"]
|
||||
user.user_option.update_columns(email_digests: false,
|
||||
email_level: UserOption.email_level_types[:never],
|
||||
email_messages_level: UserOption.email_level_types[:never])
|
||||
email_messages_level: UserOption.email_level_types[:never],
|
||||
mailing_list_mode: false)
|
||||
updated = true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user