mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
remove parseInts
This commit is contained in:
@@ -168,7 +168,7 @@ module.exports = function (Posts) {
|
||||
topics.updateLastPostTimeFromLastPid(postData.tid, next);
|
||||
},
|
||||
function (next) {
|
||||
if (parseInt(topicData.pinned, 10) !== 1) {
|
||||
if (!topicData.pinned) {
|
||||
db.sortedSetIncrBy('cid:' + topicData.cid + ':tids:posts', -1, postData.tid, next);
|
||||
} else {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user