mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
removed debug
This commit is contained in:
@@ -388,18 +388,6 @@ function emitOnlineUserCount(callback) {
|
||||
}
|
||||
}
|
||||
|
||||
Sockets.debug = function(callback) {
|
||||
var uids = [];
|
||||
//var clients = io.sockets.clients('uid_1');
|
||||
var clients = io.sockets.clients('/');
|
||||
for(var i=0; i<clients.length; ++i) {
|
||||
if (clients[i].uid !== 0 && uids.indexOf(clients[i].uid) === -1) {
|
||||
uids.push(clients[i].uid);
|
||||
}
|
||||
}
|
||||
callback(null, uids);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Exporting */
|
||||
|
||||
@@ -280,10 +280,6 @@ SocketUser.getActiveUsers = function(socket, data, callback) {
|
||||
module.parent.exports.emitOnlineUserCount(callback);
|
||||
};
|
||||
|
||||
SocketUser.debug = function(socket, data, callback) {
|
||||
module.parent.exports.debug(callback);
|
||||
};
|
||||
|
||||
SocketUser.loadMore = function(socket, data, callback) {
|
||||
if(!data || !data.set || parseInt(data.after, 10) < 0) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
|
||||
Reference in New Issue
Block a user