Skip to content

Fix invalid votes from the API being accepted#12601

Merged
Gargron merged 2 commits intomastodon:masterfrom
ClearlyClaire:fixes/invalid-vote
Jan 12, 2020
Merged

Fix invalid votes from the API being accepted#12601
Gargron merged 2 commits intomastodon:masterfrom
ClearlyClaire:fixes/invalid-vote

Conversation

@ClearlyClaire
Copy link
Copy Markdown
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