|
|
|
@ -78,7 +78,7 @@ var db = require('./database'),
|
|
|
|
|
if (!messages || !messages[0]) {
|
|
|
|
|
return next(null, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
messages[0].newSet = isNewSet;
|
|
|
|
|
messages[0].mid = mid;
|
|
|
|
|
next(null, messages[0]);
|
|
|
|
@ -341,7 +341,8 @@ var db = require('./database'),
|
|
|
|
|
summary: '[[notifications:new_message_from, ' + messageObj.fromUser.username + ']]',
|
|
|
|
|
message: messageObj,
|
|
|
|
|
site_title: meta.config.title || 'NodeBB',
|
|
|
|
|
url: nconf.get('url') + '/chats/' + utils.slugify(messageObj.fromUser.username)
|
|
|
|
|
url: nconf.get('url'),
|
|
|
|
|
fromUserslug: utils.slugify(messageObj.fromUser.username)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|