From 60912def4e7ec9e3f7620d1b284b6ea40a62deef Mon Sep 17 00:00:00 2001 From: pluja Date: Mon, 19 May 2025 11:37:36 +0000 Subject: [PATCH] Release 2025-05-19-2257 --- web/src/components/CommentSection.astro | 36 ++++++++++++++++++------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/web/src/components/CommentSection.astro b/web/src/components/CommentSection.astro index e27233b..bddf8db 100644 --- a/web/src/components/CommentSection.astro +++ b/web/src/components/CommentSection.astro @@ -239,7 +239,7 @@ function makeReplySchema(comment: CommentWithRepliesPopulated): Comment { ])} /> - Show unmoderated ({pendingCommentsCount}) + Show unmoderated ({pendingCommentsCount.toLocaleString()}) ) @@ -249,15 +249,31 @@ function makeReplySchema(comment: CommentWithRepliesPopulated): Comment {
{ - comments.map((comment) => ( - - )) + comments.length > 0 ? ( + comments.map((comment) => ( + + )) + ) : ( +
+ {pendingCommentsCount > 0 ? ( + + No approved comments, but there are + + {pendingCommentsCount.toLocaleString()} unmoderated comments + + + + ) : ( + 'No comments yet' + )} +
+ ) }