Skip to content

Node.js based forum software built for the modern web

removed commented out code

barisusakli85dfedeedc51
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() {