{#if $me}
addComment()} >
{#each comments.edges.filter(({ node: { inReplyToId } }) => !inReplyToId) as { node }}
{ await editComment(id, body); }} on:delete={async ({ detail: id }) => { await removeComment(id); }} {...node} replies={comments.edges .filter(({ node: { inReplyToId } }) => inReplyToId === node.id) .map((c) => c.node)} />
{/each}
{:else}
Connectez-vous
pour commenter.
{/if}