mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 11:17:29 +02:00
fix: closes #13666, update category label
on topic move if we are not on category page
This commit is contained in:
@@ -309,6 +309,7 @@ topicsAPI.move = async (caller, { tid, cid }) => {
|
||||
throw new Error('[[error:no-privileges]]');
|
||||
}
|
||||
const topicData = await topics.getTopicFields(tid, ['tid', 'cid', 'mainPid', 'slug', 'deleted']);
|
||||
topicData.toCid = cid;
|
||||
if (!cids.includes(topicData.cid)) {
|
||||
cids.push(topicData.cid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user