dont crash if topic is moved to pinned topic

v1.18.x
Barış Soner Uşaklı 6 years ago
parent da22940b80
commit aca50f1fe1

@ -149,8 +149,6 @@ module.exports = function (Topics) {
}
if (!topicData[1].pinned) {
tasks.push(async.apply(db.sortedSetIncrBy, 'cid:' + topicData[1].cid + ':tids:posts', 1, toTid));
} else {
next();
}
async.series(tasks, function (err) {
next(err);

Loading…
Cancel
Save