mirror of https://github.com/halo-dev/halo
fix: total comment count for page and singlepage (#2498)
#### What type of PR is this? /kind improvement /area core /milestone 2.0 #### What this PR does / why we need it: 修复文章和自定义页面的总评论数量统计取值错误 #### Which issue(s) this PR fixes: Fixes # #### Special notes for your reviewer: /cc @halo-dev/sig-halo #### Does this PR introduce a user-facing change? ```release-note None ```pull/2499/head
parent
3b4703533e
commit
708cd12d25
|
@ -85,7 +85,7 @@ public class PostServiceImpl implements PostService {
|
|||
return Stats.builder()
|
||||
.visit(counter.getVisit())
|
||||
.upvote(counter.getUpvote())
|
||||
.totalComment(counter.getApprovedComment())
|
||||
.totalComment(counter.getTotalComment())
|
||||
.approvedComment(counter.getApprovedComment())
|
||||
.build();
|
||||
}
|
||||
|
|
|
@ -218,7 +218,7 @@ public class SinglePageServiceImpl implements SinglePageService {
|
|||
return Stats.builder()
|
||||
.visit(counter.getVisit())
|
||||
.upvote(counter.getUpvote())
|
||||
.totalComment(counter.getApprovedComment())
|
||||
.totalComment(counter.getTotalComment())
|
||||
.approvedComment(counter.getApprovedComment())
|
||||
.build();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue