mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
fix: email ban tests
This commit is contained in:
@@ -230,7 +230,7 @@ Emailer.send = async (template, uid, params) => {
|
||||
if (!meta.config.sendEmailToBanned && template !== 'banned') {
|
||||
if (userData.banned) {
|
||||
winston.warn(`[emailer/send] User ${userData.username} (uid: ${uid}) is banned; not sending email due to system config.`);
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user