mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
previous commit doesnt show unusud tags in admin
This commit is contained in:
@@ -148,7 +148,7 @@ function filterAndRenderCategories(req, res, next, active) {
|
||||
}
|
||||
|
||||
adminController.tags.get = function(req, res, next) {
|
||||
topics.getTags(0, 99, function(err, tags) {
|
||||
topics.getTags(0, 199, function(err, tags) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ tagsController.getTag = 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) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
@@ -119,8 +119,8 @@ module.exports = function(Topics) {
|
||||
db.sortedSetRemove('tags:topic:count', tag);
|
||||
};
|
||||
|
||||
Topics.getTags = function(start, count, callback) {
|
||||
db.getSortedSetRevRangeByScoreWithScores('tags:topic:count', start, count, '+inf', 1, function(err, tags) {
|
||||
Topics.getTags = function(start, end, callback) {
|
||||
db.getSortedSetRevRangeWithScores('tags:topic:count', start, end, function(err, tags) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user