Skip to content

Commit 6371616

Browse files
committed
Update
Signed-off-by: Ryan Wang <i@ryanc.cc>
1 parent f1b5f62 commit 6371616

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class CommentForm extends LitElement {
8989
content: content,
9090
// TODO: support user input
9191
allowNotification: true,
92-
hidden: hidden,
92+
hidden: hidden || false,
9393
subjectRef: {
9494
group: this.group,
9595
kind: this.kind,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ export class ReplyForm extends LitElement {
8888

8989
const data = e.detail;
9090

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

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

100101
if (this.quoteReply) {

src/main/resources/extensions/settings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
- $formkit: checkbox
3939
label: 支持私密评论
4040
name: enablePrivateComment
41-
help: 开启之后,评论者可选是否私密评论
41+
help: 开启之后,已登录的评论者可选是否私密评论,私密评论仅评论者和网站管理员(包含评论查看权限)可见,
4242
value: false
4343
- group: security
4444
label: 安全设置

0 commit comments

Comments
 (0)