chinwagsocial/app/validators
ThibG d386d89179 Fix invalid votes from the API being accepted (#12601)
* Fix invalid votes from the API being accepted

Fixes #12556

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

* Please CodeClimate
2020-01-12 14:17:03 +01:00
..
blacklisted_email_validator.rb
disallowed_hashtags_validator.rb
domain_validator.rb
email_mx_validator.rb
existing_username_validator.rb
follow_limit_validator.rb
html_validator.rb
note_length_validator.rb
poll_validator.rb
status_length_validator.rb
status_pin_validator.rb
unique_username_validator.rb
unreserved_username_validator.rb
url_validator.rb
vote_validator.rb Fix invalid votes from the API being accepted (#12601) 2020-01-12 14:17:03 +01:00