Skip to content

Commit

Permalink
feat: comment setting about avoid review
Browse files Browse the repository at this point in the history
  • Loading branch information
mashirot committed Mar 19, 2024
1 parent 20153ee commit d976254
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/src/main/java/run/halo/app/infra/SystemSetting.java
Expand Up @@ -99,6 +99,7 @@ public static class Comment {
public static final String GROUP = "comment";
Boolean enable;
Boolean requireReviewForNew;
Boolean autoApproveAdminComment;
Boolean systemUserOnly;
}

Expand Down
5 changes: 5 additions & 0 deletions application/src/main/resources/extensions/system-setting.yaml
Expand Up @@ -125,6 +125,11 @@ spec:
value: true
label: "新评论审核"
help: 开启之后,新评论需要管理员审核后才会显示
- $formkit: checkbox
name: autoApproveAdminComment
value: false
label: "管理员评论免审核"
help: 开启之后,有评论管理权限的用户发布的评论不需要审核
- $formkit: checkbox
name: systemUserOnly
value: true
Expand Down

0 comments on commit d976254

Please sign in to comment.