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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user