Node.js based forum software built for the modern web
fixed derpiness I introduced last commit
Julian Lam1a6ba8c230f8
diff --git a/src/websockets.js b/src/websockets.jsindex 92546790bb..3a24ea4ff5 100644--- a/src/websockets.js+++ b/src/websockets.js@@ -527,10 +527,11 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }),user.getUserField(uid, 'username', function(err, username) {- var finalMessage = 'New message from <strong>' + username + '</strong>';+ var finalMessage = username + ': ' + msg,+ notifText = 'New message from <strong>' + username + '</strong>';if(!isUserOnline(touid)) {- notifications.create(finalMessage, 5, '#', 'notification_' + uid + '_' + touid, function(nid) {+ notifications.create(notifText, 5, '#', 'notification_' + uid + '_' + touid, function(nid) {notifications.push(nid, [touid], function(success) {});