fixed incorrect use of username in unsub cta in emails

This commit is contained in:
Julian Lam
2015-05-27 21:36:13 -04:00
parent 463c893c3d
commit f168566928
6 changed files with 7 additions and 5 deletions

View File

@@ -402,6 +402,7 @@ var db = require('./database'),
emailer.send('notif_chat', touid, {
subject: '[[email:notif.chat.subject, ' + messageObj.fromUser.username + ']]',
username: messageObj.toUser.username,
userslug: utils.slugify(messageObj.toUser.username),
summary: '[[notifications:new_message_from, ' + messageObj.fromUser.username + ']]',
message: messageObj,
site_title: meta.config.title || 'NodeBB',