Get more replies to a comment via /api/morechildren
Also started using slices of pointers instead of slices of structs. This is useful especially in the case of adding to the list of replies of a comment. If the comment is a plain old struct (non-pointer), the change wouldn't happen Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -36,8 +36,6 @@ var expectedCommentSubmitOrEdit = &Comment{
|
||||
Edited: &Timestamp{time.Date(1, 1, 1, 0, 0, 0, 0, time.UTC)},
|
||||
|
||||
PostID: "t3_link1",
|
||||
|
||||
Replies: &Replies{},
|
||||
}
|
||||
|
||||
func TestCommentService_Submit(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user