Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Conversation

NateBrune
Copy link
Contributor

While the details of #199 are being sorted out, this patch will serve to prevent people from loosing money.

While the details of steemit#199 are being sorted out, this patch will serve to prevent people from loosing money.
@NateBrune
Copy link
Contributor Author

Please be advised. I have not tested this patch locally.

@NateBrune
Copy link
Contributor Author

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"){
Copy link
Contributor

@noisy noisy Aug 30, 2016

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 ==

@roadscape roadscape changed the base branch from master to develop August 30, 2016 14:57
@jcalfee
Copy link
Contributor

jcalfee commented Aug 30, 2016

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.

0699495

@jcalfee jcalfee closed this Aug 30, 2016
@NateBrune
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants