mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
that's the last of it!! :D
This commit is contained in:
@@ -133,6 +133,21 @@ SocketUser.getActiveUsers = function(callback) {
|
||||
module.parent.exports.emitOnlineUserCount(callback);
|
||||
};
|
||||
|
||||
SocketUser.loadMore = function(data, callback) {
|
||||
var start = data.after,
|
||||
end = start + 19;
|
||||
|
||||
user.getUsers(data.set, start, end, function(err, data) {
|
||||
if (err) {
|
||||
winston.err(err);
|
||||
} else {
|
||||
callback({
|
||||
users: data
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/* Exports */
|
||||
|
||||
module.exports = SocketUser;
|
||||
Reference in New Issue
Block a user