Skip to content
Snippets Groups Projects
Commit 75397b96 authored by Evan Chou's avatar Evan Chou
Browse files

do not push comment object op on edit at all

parent 61f0153e
No related branches found
No related tags found
1 merge request!102Do not post comment option op on edit
......@@ -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(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment