fix: moving topic to cid=-1 will remove it from list

This commit is contained in:
Barış Soner Uşaklı
2025-12-13 17:19:16 -05:00
parent f49f540bfa
commit 90a151348e

View File

@@ -285,7 +285,7 @@ define('forum/category/tools', [
}
async function onTopicMoved(data) {
if (ajaxify.data.template.category) {
if (ajaxify.data.template.category || String(data.toCid) === '-1') {
getTopicEl(data.tid).remove();
} else {
const category = await api.get(`/categories/${data.toCid}`);