From 679600f0037b860c4b5fcfd8b13fd489f6eced71 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 17 May 2021 11:36:28 +0200 Subject: [PATCH] Comment fixes Signed-off-by: Thomas Citharel --- js/src/apollo/utils.ts | 5 - js/src/components/Comment/Comment.vue | 41 ++----- js/src/components/Comment/CommentTree.vue | 124 +++++++++------------- js/src/graphql/comment.ts | 19 ++++ lib/graphql/schema/event.ex | 4 +- lib/mobilizon/discussions/comment.ex | 2 +- lib/mobilizon/discussions/discussions.ex | 6 +- 7 files changed, 88 insertions(+), 113 deletions(-) diff --git a/js/src/apollo/utils.ts b/js/src/apollo/utils.ts index 7486c0961..07ca889a3 100644 --- a/js/src/apollo/utils.ts +++ b/js/src/apollo/utils.ts @@ -60,11 +60,6 @@ export const typePolicies: TypePolicies = { relatedEvents: pageLimitPagination(), }, }, - Comment: { - fields: { - replies: pageLimitPagination(), - }, - }, RootQueryType: { fields: { relayFollowers: paginatedLimitPagination(), diff --git a/js/src/components/Comment/Comment.vue b/js/src/components/Comment/Comment.vue index 090d398d1..63cfd50aa 100644 --- a/js/src/components/Comment/Comment.vue +++ b/js/src/components/Comment/Comment.vue @@ -55,7 +55,7 @@