Filter out moderators who've checked "Do you want to be notified by a email for moderation emails?" in /settings #9114
Labels
fto-candidate
issues which are meant to be solved by first timers but aren't well-formatted yet
help wanted
requires help by anyone willing to contribute
Looks like we missed a couple email notifications in #6282 -- easy fix though!
Any line which collects moderator emails in this file (and elsewhere) we should go through and filter out any one which has a tag opting out of moderator email notifications!
Those are the ones which have a tag like
notifications:noemail
orno-moderation-emails
(confirmed this toggle works!)That said, we have a setting in /settings for this:
plots2/app/views/users/settings.html.erb
Lines 50 to 54 in 876d0fc
So let's filter for at least
no-moderation-emails
and then maybe alsonotifications:noemail
when collecting emails on these lines:plots2/app/mailers/admin_mailer.rb
Line 74 in 97247e3
Here's a code example for how this works:
https://github.com/publiclab/plots2/pull/7183/files
cc #6867 #6282
The text was updated successfully, but these errors were encountered: