From e5f2071aeab8073ee92066b38e2e4ea9b663dd13 Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Fri, 27 Jun 2025 12:41:28 +0200 Subject: [PATCH] Make timestamp optional in Comment component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’ll need this for draft comments --- src/components/Comment.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Comment.svelte b/src/components/Comment.svelte index 40c6eccc8..b25c4fb7c 100644 --- a/src/components/Comment.svelte +++ b/src/components/Comment.svelte @@ -28,7 +28,7 @@ reactions?: Reaction[]; embeds?: Map; caption?: string; - timestamp: number; + timestamp?: number; lastEdit?: Edit; disallowEmptyBody?: boolean; emptyBodyTooltip?: string; @@ -139,9 +139,11 @@ {#if beforeTimestamp} {@render beforeTimestamp()} {/if} - - {utils.formatTimestamp(timestamp)} - + {#if timestamp} + + {utils.formatTimestamp(timestamp)} + + {/if} {#if lastEdit}