From 85dfedeedc51cc7b55967bf328e43d6a3e03c8e9 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 3 Dec 2014 19:43:15 -0500 Subject: [PATCH] removed commented out code --- src/socket.io/meta.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/socket.io/meta.js b/src/socket.io/meta.js index 678c96093f..331678473e 100644 --- a/src/socket.io/meta.js +++ b/src/socket.io/meta.js @@ -20,21 +20,10 @@ var nconf = require('nconf'), }; SocketMeta.reconnected = function(socket, data, callback) { - var uid = socket.uid, - sessionID = socket.id; - - if (uid) { - topics.pushUnreadCount(uid); - user.notifications.pushCount(uid); + if (socket.uid) { + topics.pushUnreadCount(socket.uid); + user.notifications.pushCount(socket.uid); } - - /*if (process.env.NODE_ENV === 'development') { - if (uid) { - winston.info('[socket] uid ' + uid + ' (' + sessionID + ') has successfully reconnected.'); - } else { - winston.info('[socket] An anonymous user (' + sessionID + ') has successfully reconnected.'); - } - }*/ }; emitter.on('nodebb:ready', function() {