Poll pages already hide votes from sandboxed users (see PR #175: Sandbox polls). However, game pages still list polls on the basis of these hidden votes. This pull request adds code to check voters' sandbox status before counting their votes on /viewgame and /allpolls.
Poll pages already hide votes from sandboxed users (see PR #175: Sandbox polls). However, game pages still list polls on the basis of these hidden votes. This pull request adds code to check voters' sandbox status before counting their votes on
/viewgame
and/allpolls
.(Tested by sandboxing the test user, since actual sandboxed users don't seem to exist in the backup database. To test on the actual site, visit https://ifdb.org/allpolls?game=xf5y04yekcrqtnc — you should see 17 rather than 20 polls, and should not see the polls Misunderstood Games, For Your Consideration - XYZZY-eligible writing of 2015 - an IFDB Poll, or For Your Consideration - XYZZY-eligible implementations of 2015 - an IFDB Poll.)