mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
removed commented out code
This commit is contained in:
@@ -20,21 +20,10 @@ var nconf = require('nconf'),
|
|||||||
};
|
};
|
||||||
|
|
||||||
SocketMeta.reconnected = function(socket, data, callback) {
|
SocketMeta.reconnected = function(socket, data, callback) {
|
||||||
var uid = socket.uid,
|
if (socket.uid) {
|
||||||
sessionID = socket.id;
|
topics.pushUnreadCount(socket.uid);
|
||||||
|
user.notifications.pushCount(socket.uid);
|
||||||
if (uid) {
|
|
||||||
topics.pushUnreadCount(uid);
|
|
||||||
user.notifications.pushCount(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() {
|
emitter.on('nodebb:ready', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user