From 2cf865e852fc1e01994ca1b79154eee68a713f04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 30 May 2023 19:31:16 -0400 Subject: [PATCH] refactor: use new params --- public/src/client/topic/postTools.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/src/client/topic/postTools.js b/public/src/client/topic/postTools.js index c9c8771ed1..72de7164b3 100644 --- a/public/src/client/topic/postTools.js +++ b/public/src/client/topic/postTools.js @@ -277,17 +277,17 @@ define('forum/topic/postTools', [ hooks.fire('action:composer.addQuote', { tid: tid, pid: toPid, - topicName: ajaxify.data.titleRaw, + title: ajaxify.data.titleRaw, username: username, - text: selectedNode.text, + body: selectedNode.text, selectedPid: selectedNode.pid, }); } else { hooks.fire('action:composer.post.new', { tid: tid, pid: toPid, - topicName: ajaxify.data.titleRaw, - text: username ? username + ' ' : ($('[component="topic/quickreply/text"]').val() || ''), + title: ajaxify.data.titleRaw, + body: username ? username + ' ' : ($('[component="topic/quickreply/text"]').val() || ''), }); } }); @@ -305,7 +305,7 @@ define('forum/topic/postTools', [ tid: tid, pid: toPid, username: username, - topicName: ajaxify.data.titleRaw, + title: ajaxify.data.titleRaw, text: text, }); }