Skip to content

Commit

Permalink
[release-2.0] Fixed the problem that comment reply cannot be displaye…
Browse files Browse the repository at this point in the history
…d in the front end (#2965)

This is an automated cherry-pick of #2954

/assign JohnNiang

```release-note
修复开启评论审核的情况下无法显示评论回复的问题
```
  • Loading branch information
halo-dev-bot committed Dec 15, 2022
1 parent 1f7e059 commit 676f2c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public Mono<Reply> create(String commentName, Reply reply) {
}
reply.getSpec().setApproved(
Boolean.FALSE.equals(commentSetting.getRequireReviewForNew()));
reply.getSpec().setHidden(!reply.getSpec().getApproved());
// fix https://github.com/halo-dev/halo/issues/2951
reply.getSpec().setHidden(false);

if (BooleanUtils.isTrue(reply.getSpec().getApproved())
&& reply.getSpec().getApprovedTime() == null) {
Expand Down

0 comments on commit 676f2c7

Please sign in to comment.