Skip to content

Commit 844b269

Browse files
authored
fix: display captcha only when anonymous comments are allowed (#148)
修复不允许匿名评论时,也显示验证码的问题。当前仅匿名评论需要验证码。 /kind bug Fixes #146 ```release-note 修复不允许匿名评论时,也显示验证码的问题。 ```
1 parent 2fe97ad commit 844b269

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ build {
4141
}
4242

4343
halo {
44-
version = "2.15.0-rc.1"
44+
version = "2.18.0"
4545
debug = true
4646
}

packages/comment-widget/src/base-form.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class BaseForm extends LitElement {
7474
}
7575

7676
get showCaptcha() {
77-
return this.captchaEnabled && !this.currentUser;
77+
return this.captchaEnabled && !this.currentUser && this.allowAnonymousComments;
7878
}
7979

8080
async handleFetchCaptcha() {

0 commit comments

Comments
 (0)