Skip to content

Commit

Permalink
fix: display captcha only when anonymous comments are allowed (halo-d…
Browse files Browse the repository at this point in the history
…ev#148)

修复不允许匿名评论时,也显示验证码的问题。当前仅匿名评论需要验证码。

/kind bug

Fixes halo-dev#146 

```release-note
修复不允许匿名评论时,也显示验证码的问题。
```
  • Loading branch information
ruibaby committed Aug 8, 2024
1 parent b564396 commit f49f1f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ build {
}

halo {
version = "2.15.0-rc.1"
version = "2.18.0"
debug = true
}
2 changes: 1 addition & 1 deletion packages/comment-widget/src/base-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f49f1f1

Please sign in to comment.