{#if event.kind !== 0}
{@render basicMarkup(getEventTitle(event), ndk)}
{#if toNpub(event.pubkey)}
Author: {@render userBadge( toNpub(event.pubkey) || "", profile?.display_name || undefined, ndk, )}
{:else}
Author: {profile?.display_name || event.pubkey}
{/if}
Kind:
{event.kind}
({getEventTypeDisplay(event)})
Summary:
{@render basicMarkup(getEventSummary(event), ndk)}
{/if}
{#if event.kind !== 0} {@const kind = event.kind} {@const content = event.content.trim()}
Content:
{#if isRepost} {#if repostKinds.includes(event.kind)}
{event.kind === 6 ? "Reposted content:" : "Generic reposted content:"}
{@render repostContent(event.content)}
{:else if event.kind === 1 && event.getMatchingTags("q").length > 0}
Quote repost:
{@render quotedContent(event, [], ndk)} {#if content}
Added comment:
{#if repostKinds.includes(kind)} {@html content} {:else} {@render basicMarkup(content, ndk)} {/if}
{/if}
{/if} {:else}
{#if repostKinds.includes(kind)} {@html content} {:else} {@render basicMarkup(content, ndk)} {/if}
{#if shouldTruncate}
(showFullContent = true)}>Show more
{/if} {/if}
{/if} {#if event.kind === 0}
{/if}
{#snippet content()}
Technical details
{#snippet header()}Identifiers{/snippet} {#if event}
{#each getIdentifiers(event, profile) as identifier}
{identifier.label}:
{#if identifier.link}
navigateToIdentifier(identifier.link ?? "")} > {identifier.value}
{:else}
{identifier.value}
{/if}
{/each}
{/if}
{#if event.tags && event.tags.length}
{#snippet header()} Tags {/snippet}
{#each event.tags as tag} {@const tagInfo = getTagButtonInfo(tag)} {#if tagInfo.text && tagInfo.gotoValue}
handleTagGoto(tagInfo.gotoValue || "")} class="text-primary-700 dark:text-primary-300 cursor-pointer bg-transparent border-none p-0 text-left hover:text-primary-900 dark:hover:text-primary-100 break-all max-w-full" > {tagInfo.text}
{/if} {/each}
{/if}
{#snippet header()}Event JSON{/snippet}
{#if event}
{JSON.stringify(event.rawEvent(), null, 2)}
{/if}
{#snippet header()}Relay Info{/snippet}
{/snippet}