Disable "Send me email notifications even when I am active on the site" Global


(Jared Needell) #1

Is it possible to disable “Send me email notifications even when I am active on the site” globally? I did a recent Discourse update and noticed everyone got this setting checked.


(Neil Lalonde) #2

If you’ve checked the setting “default email always”, then you should uncheck it.

Then from a rails console, you’ll need to run:

UserOption.where(email_always: true).update_all(email_always: false)