mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
active users fix
This commit is contained in:
@@ -135,13 +135,8 @@ SocketModules.composer.pingActive = function(socket, uuid) {
|
||||
|
||||
SocketModules.composer.getUsersByTid = function(socket, tid, callback) {
|
||||
// Return uids with active composers
|
||||
console.log(tid);
|
||||
callback(null, _.filter(SocketModules.composer.replyHash, function(replyObj, uuid) {
|
||||
if (parseInt(replyObj.tid, 10) === parseInt(tid, 10)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return parseInt(replyObj.tid, 10) === parseInt(tid, 10);
|
||||
}).map(function(replyObj) {
|
||||
return replyObj.uid
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user