mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
simplified getAllTopics
This commit is contained in:
@@ -39,7 +39,10 @@ SocketAdmin.topics.getMore = function(socket, data, callback) {
|
||||
return callback(new Error('invalid data'));
|
||||
}
|
||||
|
||||
topics.getAllTopics(data.limit, data.after, callback);
|
||||
var start = parseInt(data.after, 10),
|
||||
end = start + parseInt(data.limit, 10);
|
||||
|
||||
topics.getAllTopics(start, end, callback);
|
||||
};
|
||||
|
||||
/* User */
|
||||
|
||||
Reference in New Issue
Block a user