use loadMoreFromSet

This commit is contained in:
barisusakli
2014-11-16 18:31:57 -05:00
parent 32e08ba419
commit 0a1fa72bd8
4 changed files with 4 additions and 18 deletions

View File

@@ -16,7 +16,7 @@ var categoriesController = {},
categoriesController.recent = function(req, res, next) {
var uid = req.user ? req.user.uid : 0;
var end = (parseInt(meta.config.topicsPerList, 10) || 20) - 1;
topics.getRecentTopics(uid, 0, end, function (err, data) {
topics.getTopicsFromSet('topics:recent', uid, 0, end, function(err, data) {
if (err) {
return next(err);
}