From 90a151348e344b7002b8126aa8d235bda88879ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 13 Dec 2025 17:19:16 -0500 Subject: [PATCH] fix: moving topic to cid=-1 will remove it from list --- public/src/client/category/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/category/tools.js b/public/src/client/category/tools.js index 42160e6e6a..f298cbe85d 100644 --- a/public/src/client/category/tools.js +++ b/public/src/client/category/tools.js @@ -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}`);