mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
properly broadcasting a user.active change
This commit is contained in:
@@ -246,13 +246,13 @@ var config = require('../config.js'),
|
||||
}
|
||||
|
||||
if (callback === undefined) {
|
||||
global.socket.emit('api:user.active.get', returnObj)
|
||||
io.sockets.emit('api:user.active.get', returnObj)
|
||||
} else {
|
||||
callback(returnObj);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
global.socket.emit('api:user.active.get', returnObj)
|
||||
io.sockets.emit('api:user.active.get', returnObj)
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user