In FEATURE: send email to deleted user by lis2 · Pull Request #31947 · discourse/discourse · GitHub the feature has been added that an email is sent to users who are deleted due to a spam flag.
Template
Hello,
This is an automated message from [%{site_name}](%{base_url}) to let you know that the user account associated with this email address has been deleted by a staff member.
%{flag_reason}
Please review our [community guidelines](%{base_url}/guidelines) for details.
The email contains a link to the guidelines. However, my forum is login required
so the guidelines are not public and the user I just deleted is instead asked to log in or register again.
If they have to register again first, that doesn’t make sense to me to ask them to review the guidelines. Is it possible to display the last sentence only if the guidelines are also publicly accessible?