fix: closes #13666, update category label

on topic move if we are not on category page
This commit is contained in:
Barış Soner Uşaklı
2025-12-06 20:08:05 -05:00
parent ebf2a2c5af
commit 193aaf55d5
3 changed files with 16 additions and 3 deletions

View File

@@ -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);
}