fix: minor cleanup of quick-reply args; opts.body

This commit is contained in:
Julian Lam
2026-02-13 11:50:24 -05:00
parent eb0aa6d8bd
commit a9c2457fd4
2 changed files with 5 additions and 2 deletions

View File

@@ -427,6 +427,9 @@ define('forum/topic', [
if (config.enableQuickReply || (config.theme && config.theme.enableQuickReply)) {
quickreply.init({
route: `/topics/${ajaxify.data.tid}`,
body: {
tid: ajaxify.data.tid,
},
});
}
}

View File

@@ -124,9 +124,9 @@ define('quickreply', [
storage.removeItem(qrDraftId);
const textEl = components.get('topic/quickreply/text');
hooks.fire('action:composer.post.new', {
tid: ajaxify.data.tid,
title: ajaxify.data.titleRaw,
title: ajaxify.data.tid ? ajaxify.data.titleRaw : '',
body: textEl.val(),
...opts.body,
});
textEl.val('');
});