From cd5c57f7174b922b66e544cf655e76fc97211e85 Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Sun, 25 Aug 2024 17:01:06 -0300 Subject: [PATCH] fix oversights introduced in captcha; --- templates/main.js | 6 +++--- templates/post_form.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/main.js b/templates/main.js index f956f5cf..13c80c33 100644 --- a/templates/main.js +++ b/templates/main.js @@ -222,7 +222,7 @@ function getCookie(cookie_name) { } } -{% endraw %} +{% endverbatim %} {% if config.captcha.dynamic %} function is_dynamic_captcha_enabled() { let cookie = get_cookie('require-captcha'); @@ -230,7 +230,7 @@ function is_dynamic_captcha_enabled() { } function get_captcha_pub_key() { -{% if config.captcha.provider === 'recaptcha' %} +{% if config.captcha.provider == 'recaptcha' %} return "{{ config.captcha.recaptcha.sitekey }}"; {% else %} return null; @@ -250,7 +250,7 @@ function init_dynamic_captcha() { } } {% endif %} -{% raw %} +{% verbatim %} function highlightReply(id) { if (typeof window.event != "undefined" && event.which == 2) { diff --git a/templates/post_form.html b/templates/post_form.html index 038395fa..64aff382 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -100,7 +100,7 @@ {% endif %} - {% if config.captcha.enabled %} + {% if config.captcha.provider == 'native' %}