Skip to content

Commit

Permalink
fix: get comment count
Browse files Browse the repository at this point in the history
  • Loading branch information
KawaiiZapic committed Nov 5, 2024
1 parent 1b82365 commit 40d45af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}
?>
</div>
<?php if ($this->commentsNum === 0) { ?>
<?php if ($comments->___length() === 0) { ?>
<div class="my-12 text-md text-center opacity-50" id="matecho-no-comment-placeholder">没有评论</div>
<?php } ?>
<div class="py-4 matecho-comment-form matecho-comment-form__main w-full box-border relative <?php echo $this->allowComment ? "" : "matecho-comment-form__lock"; ?>"
Expand Down

0 comments on commit 40d45af

Please sign in to comment.