From 27b0fbe68593a16ea8ebe7f9a4ed2dbcb2b70b62 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 17 Mar 2026 12:06:43 -0400 Subject: [PATCH] fix: only show category selector on quickreply on /world --- install/package.json | 4 ++-- public/src/modules/quickreply.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install/package.json b/install/package.json index ddf847714e..42f19561a3 100644 --- a/install/package.json +++ b/install/package.json @@ -108,10 +108,10 @@ "nodebb-plugin-spam-be-gone": "2.3.2", "nodebb-plugin-web-push": "0.7.7", "nodebb-rewards-essentials": "1.0.2", - "nodebb-theme-harmony": "2.2.59", + "nodebb-theme-harmony": "2.2.60", "nodebb-theme-lavender": "7.1.21", "nodebb-theme-peace": "2.2.57", - "nodebb-theme-persona": "14.2.32", + "nodebb-theme-persona": "14.2.33", "nodebb-widget-essentials": "7.0.43", "nodemailer": "8.0.2", "nprogress": "0.2.0", diff --git a/public/src/modules/quickreply.js b/public/src/modules/quickreply.js index f081c59588..3a9573fb7b 100644 --- a/public/src/modules/quickreply.js +++ b/public/src/modules/quickreply.js @@ -19,7 +19,7 @@ define('quickreply', [ return; } - if ($('[component="topic/quickreply/container"] [component="category-selector"]')) { + if (opts?.body?.cid && $('[component="topic/quickreply/container"] [component="category-selector"]')) { categorySelector.init($('[component="category-selector"]'), { privilege: 'topics:create', selectedCategory: ajaxify.data.selectedCategory, @@ -28,6 +28,7 @@ define('quickreply', [ opts.body.cid = category.cid; }, }); + $('[component="topic/quickreply/container"] [component="topic/quickreply/category-selector"').removeClass('hidden'); } const qrDraftId = ajaxify.data.tid ? `qr:draft:tid:${ajaxify.data.tid}` : `qr:draft:cid:${opts?.body?.cid || -1}`;