feat(comments): paginate life post and entity discussion comments

Implement cursor-based pagination for Life and Entity comments
Optimize Life Post queries to return comment counts and previews
Add "Load more" functionality to frontend discussion panels
This commit is contained in:
2026-05-03 15:20:05 +08:00
parent 0c76d6bfc8
commit 960898c858
8 changed files with 488 additions and 45 deletions

View File

@@ -548,7 +548,7 @@ function authorInitial(post: LifePost): string {
}
function commentTotal(post: LifePost): number {
return post.comments.reduce((total, comment) => total + 1 + comment.replies.length, 0);
return post.commentCount;
}
function reactionTotal(post: LifePost): number {