reddit/reddit — pull request #418 by bboe (2012-04-17 07:23:55+00:00)
Title: Don't display captcha and ratelimit fields when they aren't needed.

The logic I added previously for the `ratelimit` field was simply based on what code was there for the `captcha` field. However, after realizing that these fields were _always_ added for submits I realized that the previous if conditionals were always evaluating to true for submissions due to POST_submit having a validatedForm decorator with both VCaptcha and VRatelimit as parameters. This pull request will now only add those parameters when they are actually needed.