Commit Graph

6 Commits (06374d07c3ce5eab2560ae85b56939cef575aee8)

Author SHA1 Message Date
Claire 5cd55d8aaf
Fix being able to vote on your own polls ()
Matt Jankowski 88d33f361f
Fix Lint/DuplicateBranch cop ()
Matt Jankowski 4bb39ac3c3
Fix single-record invalid condition on PollVote ()
ThibG d386d89179 Fix invalid votes from the API being accepted ()
* Fix invalid votes from the API being accepted

Fixes 

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

* Please CodeClimate
Eugen Rochko 8fe93b0701
Fix vote validation for polls with multiple choices ()
Eugen Rochko 230a012f00
Add polls ()
* Add polls

Fix 

* Add tests

* Fixes

* Change API for creating polls

* Use name instead of content for votes

* Remove poll validation for remote polls

* Add polls to public pages

* When updating the poll, update options just in case they were changed

* Fix public pages showing both poll and other media