mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
closes #2100
This commit is contained in:
@@ -435,10 +435,10 @@ var db = require('./database'),
|
||||
db.incrObjectField('category:' + cid, 'post_count', next);
|
||||
},
|
||||
function(next) {
|
||||
if(parseInt(topicData.pinned, 10) === 0) {
|
||||
db.sortedSetAdd('categories:' + cid + ':tid', postData.timestamp, postData.tid, next);
|
||||
} else {
|
||||
if (parseInt(topicData.pinned, 10) === 1) {
|
||||
next();
|
||||
} else {
|
||||
db.sortedSetAdd('categories:' + cid + ':tid', postData.timestamp, postData.tid, next);
|
||||
}
|
||||
}
|
||||
], callback);
|
||||
|
||||
Reference in New Issue
Block a user