From aca50f1fe1792dcf428136327f4137a60f3c76d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 25 Oct 2018 11:55:11 -0400 Subject: [PATCH] dont crash if topic is moved to pinned topic --- src/topics/fork.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/topics/fork.js b/src/topics/fork.js index 7de56cd789..6964314814 100644 --- a/src/topics/fork.js +++ b/src/topics/fork.js @@ -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);