diff --git a/src/data/threads.js b/src/data/threads.js index e30a76f..6ec50a0 100644 --- a/src/data/threads.js +++ b/src/data/threads.js @@ -192,9 +192,10 @@ async function createNewThreadForUser(user, opts = {}) { if (! quiet) { // Ping moderators of the new thread - if (config.mentionRole) { + const staffMention = utils.getInboxMention(); + if (staffMention.trim() !== "") { await newThread.postNonLogMessage({ - content: `${utils.getInboxMention()}New modmail thread (${newThread.user_name})`, + content: `${staffMention}New modmail thread (${newThread.user_name})`, allowedMentions: utils.getInboxMentionAllowedMentions(), }); }