v1.18.x
Julian Lam 8 years ago
parent 7ba76fc0b6
commit 3272c0b98c

@ -239,6 +239,10 @@ var meta = require('./meta');
db.getSortedSetRange('categories:cid', 0, -1, function (err, cids) {
async.filter(cids, function (cid, next) {
User.isModerator(uid, cid, function (err, isMod) {
if (err) {
// do nothing because async doesn't support errors in filter yet
}
next(!!isMod);
});
}, function (result) {

Loading…
Cancel
Save