From 7deed83dbb8835727c743662bee776794d460e74 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 27 Dec 2021 11:12:47 +0100 Subject: chore: display comments as a tree I was displaying comments without the parent/children link. Now, each child is displayed under its parent. I also remove the reply button for children to avoid too many child depth. --- src/services/graphql/queries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/services') diff --git a/src/services/graphql/queries.ts b/src/services/graphql/queries.ts index a40446e..1cbb616 100644 --- a/src/services/graphql/queries.ts +++ b/src/services/graphql/queries.ts @@ -168,7 +168,7 @@ export const getPostBySlug = async (slug: string): Promise
=> { } } commentCount - comments { + comments(where: { order: ASC, orderby: COMMENT_DATE }) { nodes { approved author { -- cgit v1.2.3