feat: add comments count

This commit is contained in:
Krispire Admin
2026-06-13 02:24:21 +05:30
parent 6ebaa36158
commit 05567ad438
4 changed files with 40 additions and 10 deletions
+4
View File
@@ -55,6 +55,10 @@ type Post struct {
// comment layer so the card footer can show it without a per-card fetch.
// Nil when nothing is pinned.
PinnedComment *Comment `json:"pinned_comment,omitempty"`
// CommentsCount is the total number of comments + replies on the post
// (drives the footer's comment count). Hydrated by the comment layer.
CommentsCount int `json:"comments_count"`
}
// Comment is one comment (or reply) on a post. Threading is one level deep: