feat: add feed
This commit is contained in:
@@ -59,6 +59,13 @@ type Post struct {
|
||||
// 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"`
|
||||
|
||||
// Viewer↔author relationship, hydrated for the home feed so the card can
|
||||
// render a Follow / Follow Back affordance. ViewerFollowsAuthor: the
|
||||
// caller follows (accepted) this post's author. AuthorFollowsViewer: the
|
||||
// author follows the caller. Both false for anonymous viewers / own posts.
|
||||
ViewerFollowsAuthor bool `json:"viewer_follows_author"`
|
||||
AuthorFollowsViewer bool `json:"author_follows_viewer"`
|
||||
}
|
||||
|
||||
// Comment is one comment (or reply) on a post. Threading is one level deep:
|
||||
|
||||
Reference in New Issue
Block a user