mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
adding 'load more topics' button to topic admin
This commit is contained in:
@@ -57,10 +57,7 @@ var user = require('./../user.js'),
|
||||
}
|
||||
break;
|
||||
case 'topics':
|
||||
topics.getAllTopics(function(topics) {
|
||||
topics.sort(function(a, b) {
|
||||
return b.timestamp - a.timestamp;
|
||||
});
|
||||
topics.getAllTopics(10, null, function(topics) {
|
||||
res.json({
|
||||
topics: topics
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user