- Turn off the
- Flag a post created by a TL0 user as spam;
- Log into an account with moderation rights and no admin rights;
- Go to admin/flags, click Delete… and then select Delete Spammer
The modal closes and the following errors show up in the browser console (screenshot taken from my local install):
Based on the research I did around the flags area in the codebase, I think this fails (I could be totally wrong here) because at some point discourse tries to run a “check email” task (similar to the task the check email button on profiles has) on the spammer using the moderator account, but since disabling the
show_email_on_profile setting seems to prevent moderators from checking email addresses (?), the check email task fails and consequently deleting the spammer fails as well.