From 33eff78a64c71ec4561433940fd59effb40a3d15 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 1 Jun 2017 19:49:53 +0700 Subject: [PATCH] Always request comment id --- client/coral-embed-stream/src/containers/Stream.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/coral-embed-stream/src/containers/Stream.js b/client/coral-embed-stream/src/containers/Stream.js index 51a838f06..f2f5f67db 100644 --- a/client/coral-embed-stream/src/containers/Stream.js +++ b/client/coral-embed-stream/src/containers/Stream.js @@ -220,10 +220,12 @@ const LOAD_MORE_QUERY = gql` query CoralEmbedStream_LoadMoreComments($limit: Int = 5, $cursor: Date, $parent_id: ID, $asset_id: ID, $sort: SORT_ORDER, $excludeIgnored: Boolean) { comments(query: {limit: $limit, cursor: $cursor, parent_id: $parent_id, asset_id: $asset_id, sort: $sort, excludeIgnored: $excludeIgnored}) { nodes { + id ...${getDefinitionName(Comment.fragments.comment)} replyCount(excludeIgnored: $excludeIgnored) replies(limit: 3, excludeIgnored: $excludeIgnored) { nodes { + id ...${getDefinitionName(Comment.fragments.comment)} } hasNextPage @@ -241,10 +243,12 @@ const LOAD_MORE_QUERY = gql` const commentFragment = gql` fragment CoralEmbedStream_Stream_comment on Comment { + id ...${getDefinitionName(Comment.fragments.comment)} replyCount(excludeIgnored: $excludeIgnored) replies { nodes { + id ...${getDefinitionName(Comment.fragments.comment)} } hasNextPage