allow multiple tags

This commit is contained in:
barisusakli
2017-01-05 21:14:12 +03:00
parent 3f15dbdc54
commit c0a8fd7395
2 changed files with 10 additions and 4 deletions

View File

@@ -125,7 +125,7 @@ module.exports = function (Categories) {
if (parseInt(pinned, 10) === 1) {
return setImmediate(next);
}
async.parallel([
function (next) {
db.sortedSetAdd('cid:' + cid + ':tids', postData.timestamp, postData.tid, next);
@@ -135,11 +135,11 @@ module.exports = function (Categories) {
}
], function (err) {
next(err);
});
});
},
function (next) {
Categories.updateRecentTid(cid, postData.tid, next);
}
}
], callback);
};