Skip to content

Commit

Permalink
fix: total comment count for page and singlepage (#2498)
Browse files Browse the repository at this point in the history
#### 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
```
  • Loading branch information
guqing authored Sep 30, 2022
1 parent 3b47035 commit 708cd12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Stats fetchStats(Post post) {
return Stats.builder()
.visit(counter.getVisit())
.upvote(counter.getUpvote())
.totalComment(counter.getApprovedComment())
.totalComment(counter.getTotalComment())
.approvedComment(counter.getApprovedComment())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ Stats fetchStats(SinglePage singlePage) {
return Stats.builder()
.visit(counter.getVisit())
.upvote(counter.getUpvote())
.totalComment(counter.getApprovedComment())
.totalComment(counter.getTotalComment())
.approvedComment(counter.getApprovedComment())
.build();
}
Expand Down

0 comments on commit 708cd12

Please sign in to comment.