From 1a6ba8c230f8c86eed414e416fef5d93617dbb13 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 27 Aug 2013 14:04:09 -0400 Subject: [PATCH] fixed derpiness I introduced last commit --- src/websockets.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/websockets.js b/src/websockets.js index 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 ' + username + ''; + var finalMessage = username + ': ' + msg, + notifText = 'New message from ' + username + ''; 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) { });