{detail?.title ?? "Thread"} {#snippet avatar(author: Author)} {#if author.picture} {:else} {author.name[0].toUpperCase()} {/if} {/snippet} {#snippet post( p: PostData, index: number, bindEl: (el: HTMLElement | null) => void, )} {@const author = resolveAuthor(p.pubkey, profiles)}
{@render avatar(author)}
{author.name}
{#if canModerate}
{#if openMenuId === p.id} {/if}
{/if} {formatDate(p.createdAt)}
{#if auth.user}
{/if}
{/snippet} {#if detail}
Discussions

{detail.title}

{#if isScrolled}
{/if}
{#if detail.labels.length > 0}
{#each detail.labels as l} {/each}
{/if}
{@render post(detail.op, 0, () => {})}
{#if detail.replies.length > 0}
{#each detail.replies as reply, i}
{@render post(reply, i + 1, () => {})}
{/each}
{/if}
{#if auth.user} {#if replyError}
{replyError}
{/if} p.pubkey)} {threadEventAuthors} />
{:else}

To participate and reply, please

{/if}
{:else}
Loading…
{/if} {#if selectionTarget && auth.user} {/if}