diff --git a/src/main/java/run/halo/app/content/impl/PostServiceImpl.java b/src/main/java/run/halo/app/content/impl/PostServiceImpl.java index 3253110d7f..f1d4e6feaf 100644 --- a/src/main/java/run/halo/app/content/impl/PostServiceImpl.java +++ b/src/main/java/run/halo/app/content/impl/PostServiceImpl.java @@ -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(); } diff --git a/src/main/java/run/halo/app/content/impl/SinglePageServiceImpl.java b/src/main/java/run/halo/app/content/impl/SinglePageServiceImpl.java index 294daa9e30..fe319af9f0 100644 --- a/src/main/java/run/halo/app/content/impl/SinglePageServiceImpl.java +++ b/src/main/java/run/halo/app/content/impl/SinglePageServiceImpl.java @@ -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(); }