|
|
@ -183,13 +183,16 @@ var async = require('async'),
|
|
|
|
|
|
|
|
|
|
|
|
categories.moveRecentReplies(tid, oldCid, cid);
|
|
|
|
categories.moveRecentReplies(tid, oldCid, cid);
|
|
|
|
|
|
|
|
|
|
|
|
topics.setTopicField(tid, 'cid', cid, callback);
|
|
|
|
topics.setTopicField(tid, 'cid', cid, function(err) {
|
|
|
|
|
|
|
|
if (err) {
|
|
|
|
plugins.fireHook('action:topic.move', {
|
|
|
|
return callback(err);
|
|
|
|
tid: tid,
|
|
|
|
}
|
|
|
|
fromCid: oldCid,
|
|
|
|
plugins.fireHook('action:topic.move', {
|
|
|
|
toCid: cid,
|
|
|
|
tid: tid,
|
|
|
|
uid: uid
|
|
|
|
fromCid: oldCid,
|
|
|
|
|
|
|
|
toCid: cid,
|
|
|
|
|
|
|
|
uid: uid
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|