diff --git a/nyaa/forms.py b/nyaa/forms.py index 760988b..97c9e26 100644 --- a/nyaa/forms.py +++ b/nyaa/forms.py @@ -205,6 +205,8 @@ class CommentForm(FlaskForm): DataRequired(message='Comment must not be empty.') ]) + recaptcha = RecaptchaField(validators=[upload_recaptcha_validator_shim]) + class InlineButtonWidget(object): """ diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index 91adbda..b7466a8 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -193,8 +193,33 @@ {% if comment_form %}
{% endif %}