Make MoreComments field in Things a list

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-12 22:55:00 -04:00
parent aa1de29812
commit 4a2284755f
3 changed files with 28 additions and 20 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ func (s *CommentService) LoadMoreReplies(ctx context.Context, comment *Comment)
}
postID := comment.PostID
commentIDs := comment.Replies.MoreComments.Children
commentIDs := comment.Replies.More.Children
type query struct {
PostID string `url:"link_id"`
@@ -112,7 +112,7 @@ func (s *CommentService) LoadMoreReplies(ctx context.Context, comment *Comment)
addCommentToReplies(comment, c)
}
comment.Replies.MoreComments = nil
comment.Replies.More = nil
return resp, nil
}