Browse Source

turn comments off, by default

master
silberengel 3 months ago
parent
commit
30257bf72c
  1. 6
      src/lib/components/publications/Publication.svelte

6
src/lib/components/publications/Publication.svelte

@ -64,7 +64,7 @@
let publicationContentRef: HTMLElement | null = $state(null); let publicationContentRef: HTMLElement | null = $state(null);
// Comment layer state // Comment layer state
let commentsVisible = $state(true); let commentsVisible = $state(false);
let comments = $state<NDKEvent[]>([]); let comments = $state<NDKEvent[]>([]);
let commentLayerRef: any = null; let commentLayerRef: any = null;
let showArticleCommentUI = $state(false); let showArticleCommentUI = $state(false);
@ -1734,8 +1734,8 @@
<!-- Comment Layer Component --> <!-- Comment Layer Component -->
<CommentLayer <CommentLayer
bind:this={commentLayerRef} bind:this={commentLayerRef}
eventIds={allEventIds} eventIds={commentsVisible ? allEventIds : []}
eventAddresses={allEventAddresses} eventAddresses={commentsVisible ? allEventAddresses : []}
bind:comments bind:comments
{useMockComments} {useMockComments}
/> />

Loading…
Cancel
Save