feat: add comments count
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user