previous commit doesnt show unusud tags in admin

v1.18.x
barisusakli 10 years ago
parent 68e8039ac7
commit a45858dacd

@ -148,7 +148,7 @@ function filterAndRenderCategories(req, res, next, active) {
} }
adminController.tags.get = function(req, res, next) { adminController.tags.get = function(req, res, next) {
topics.getTags(0, 99, function(err, tags) { topics.getTags(0, 199, function(err, tags) {
if (err) { if (err) {
return next(err); return next(err);
} }

@ -49,7 +49,7 @@ tagsController.getTag = function(req, res, next) {
}; };
tagsController.getTags = function(req, res, next) { tagsController.getTags = function(req, res, next) {
topics.getTags(0, 100, function(err, tags) { topics.getTags(0, 99, function(err, tags) {
if (err) { if (err) {
return next(err); return next(err);
} }

@ -119,8 +119,8 @@ module.exports = function(Topics) {
db.sortedSetRemove('tags:topic:count', tag); db.sortedSetRemove('tags:topic:count', tag);
}; };
Topics.getTags = function(start, count, callback) { Topics.getTags = function(start, end, callback) {
db.getSortedSetRevRangeByScoreWithScores('tags:topic:count', start, count, '+inf', 1, function(err, tags) { db.getSortedSetRevRangeWithScores('tags:topic:count', start, end, function(err, tags) {
if (err) { if (err) {
return callback(err); return callback(err);
} }

Loading…
Cancel
Save