From 0da968fa893f5b484cd5fdbd7bd36774f7925f61 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 8 Aug 2024 18:46:09 +0800 Subject: [PATCH] fix: display captcha only when anonymous comments are allowed Signed-off-by: Ryan Wang --- build.gradle | 2 +- packages/comment-widget/src/base-form.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index d6c7d09..2f2a1e0 100644 --- a/build.gradle +++ b/build.gradle @@ -41,6 +41,6 @@ build { } halo { - version = "2.15.0-rc.1" + version = "2.18.0" debug = true } diff --git a/packages/comment-widget/src/base-form.ts b/packages/comment-widget/src/base-form.ts index c8991aa..86caa74 100644 --- a/packages/comment-widget/src/base-form.ts +++ b/packages/comment-widget/src/base-form.ts @@ -74,7 +74,7 @@ export class BaseForm extends LitElement { } get showCaptcha() { - return this.captchaEnabled && !this.currentUser; + return this.captchaEnabled && !this.currentUser && this.allowAnonymousComments; } async handleFetchCaptcha() {