Skip to content

Commit 785182a

Browse files
committed
Hide private checkbox in reply form
1 parent 086ac0e commit 785182a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class ReplyForm extends LitElement {
7575
return html` <base-form
7676
.submitting=${this.submitting}
7777
.captcha=${this.captcha}
78-
.hidePrivateCheckbox=${this.comment?.spec.hidden || false}
78+
.hidePrivateCheckbox=${true}
7979
${ref(this.baseFormRef)}
8080
@submit="${this.onSubmit}"
8181
></base-form>`;
@@ -88,14 +88,13 @@ export class ReplyForm extends LitElement {
8888

8989
const data = e.detail;
9090

91-
const { displayName, email, website, content, hidden } = data || {};
91+
const { displayName, email, website, content } = data || {};
9292

9393
const replyRequest: ReplyRequest = {
9494
raw: content,
9595
content: content,
9696
// TODO: support user input
9797
allowNotification: true,
98-
hidden: hidden || false,
9998
};
10099

101100
if (this.quoteReply) {

0 commit comments

Comments
 (0)