Skip to content

Commit

Permalink
fix: display captcha only when anonymous comments are allowed
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <i@ryanc.cc>
  • Loading branch information
ruibaby committed Aug 8, 2024
1 parent 35ab602 commit 0da968f
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 0da968f

Please sign in to comment.