From 75397b966125591e93490e5edd229015e5629168 Mon Sep 17 00:00:00 2001 From: Evan Chou <chou86.e@gmail.com> Date: Sun, 23 Aug 2020 14:17:13 +0000 Subject: [PATCH] do not push comment object op on edit at all --- src/app/components/elements/ReplyEditor.jsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app/components/elements/ReplyEditor.jsx b/src/app/components/elements/ReplyEditor.jsx index 411f0c6d7..d5df48356 100644 --- a/src/app/components/elements/ReplyEditor.jsx +++ b/src/app/components/elements/ReplyEditor.jsx @@ -1352,7 +1352,7 @@ export default formId => const originalBody = isEdit ? originalPost.body : null; const __config = { originalBody, - comment_options: {}, + comment_options: isEdit ? null : {}, }; // Avoid changing payout option during edits #735 if (!isEdit) { @@ -1390,14 +1390,6 @@ export default formId => } } - // Used to be in the !isEdit condition above but that causes edited posts to accept unlimited payout - // despite being set to a max_accepted_payout originally. The API node will then reject the edit. - if (maxAcceptedPayout !== null && maxAcceptedPayout !== 0) { - __config.comment_options.max_accepted_payout = `${maxAcceptedPayout.toFixed( - 3 - )} HBD`; - } - const operation = { ...linkProps, category: originalPost.category || metaTags.first(), -- GitLab