mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
fix topic move
This commit is contained in:
@@ -189,12 +189,12 @@ var winston = require('winston'),
|
||||
topic = topicData;
|
||||
db.sortedSetRemove('categories:' + topicData.cid + ':tid', tid, next);
|
||||
},
|
||||
function(result, next) {
|
||||
function(next) {
|
||||
var timestamp = parseInt(topic.pinned, 10) ? Math.pow(2, 53) : topic.lastposttime;
|
||||
db.sortedSetAdd('categories:' + cid + ':tid', timestamp, tid, next);
|
||||
}
|
||||
], function(err, result) {
|
||||
if(err) {
|
||||
], function(err) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
var oldCid = topic.cid;
|
||||
|
||||
Reference in New Issue
Block a user