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

Fix Error Causing Voting to Fail #83

Merged
merged 1 commit into from
Jan 26, 2018
Merged

Fix Error Causing Voting to Fail #83

merged 1 commit into from
Jan 26, 2018

Conversation

aditya-ramabadran
Copy link
Contributor

Voting using .vote() checks if the post is archived, and if it is, it raises the VotingInvalidOnArchivedPost error.

However, prior to this fix, it checked if the net_rshares of the post was 0, which would also fire if the post did not have any votes on it yet. This fix allows posts that aren't archived but have 0 votes to be voted on.

Voting using `.vote()` checks if the post is archived, and if it is, it raises the `VotingInvalidOnArchivedPost` error.

However, prior to this fix, it checked if the `net_rshares` of the post was 0, which would also fire if the post did not have any votes on it yet. This fix allows posts that aren't archived but have 0 votes to be voted on.
@emre
Copy link

emre commented Nov 13, 2017

+1.

@cyon1c cyon1c merged commit 7e1a1b0 into steemit:master Jan 26, 2018
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