-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot patch showPromotePost method #200
Conversation
While the details of steemit#199 are being sorted out, this patch will serve to prevent people from loosing money.
Please be advised. I have not tested this patch locally. |
Updated to prevent non-root comment promotion. |
@@ -134,7 +134,9 @@ export default class PostFull extends React.Component { | |||
if (!post_content) return | |||
const author = post_content.get('author') | |||
const permlink = post_content.get('permlink') | |||
this.props.showPromotePost(author, permlink) | |||
if(post_content.get('mode')=="first_payout" && post_content.get('depth') == "0"){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add spaces around first ==
Add spaces for @noisy
Until resolved we can hide the promote button unless a post is on its first_payout. Only root posts have the promote button so I did not check the depth. Please reopen if you think I missed something. |
While the details of #199 are being sorted out, this patch will serve to prevent people from loosing money.