mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
fire action:topic.move after topic cid is changed
This commit is contained in:
@@ -183,8 +183,10 @@ 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) {
|
||||||
|
return callback(err);
|
||||||
|
}
|
||||||
plugins.fireHook('action:topic.move', {
|
plugins.fireHook('action:topic.move', {
|
||||||
tid: tid,
|
tid: tid,
|
||||||
fromCid: oldCid,
|
fromCid: oldCid,
|
||||||
@@ -192,6 +194,7 @@ var async = require('async'),
|
|||||||
uid: uid
|
uid: uid
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user