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 invalid votes from the API being accepted #12601

Merged
merged 2 commits into from
Jan 12, 2020

Conversation

ClearlyClaire
Copy link
Contributor

Fixes #12556

  • Ensure choice is an integer instead of silently converting to 0
  • Ensure choice corresponds to an actual choice of the poll

Fixes mastodon#12556

- Ensure `choice` is an integer instead of silently converting to 0
- Ensure `choice` corresponds to an actual choice of the poll
@Gargron Gargron merged commit d386d89 into mastodon:master Jan 12, 2020
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.

Giving invalid choices results in first poll option being chosen
2 participants