{#if event.kind !== 0 && getEventTitle(event)}
{getEventTitle(event)}
{/if}
{#if toNpub(event.pubkey)}
Author: {@render userBadge( toNpub(event.pubkey) as string, profile?.display_name || event.pubkey, )}
{:else}
Author: {profile?.display_name || event.pubkey}
{/if}
Kind:
{event.kind}
({getEventTypeDisplay(event)})
{#if getEventSummary(event)}
Summary:
{getEventSummary(event)}
{/if} {#if getEventHashtags(event).length}
Tags:
{#each getEventHashtags(event) as tag}
goto(`/events?t=${encodeURIComponent(tag)}`)} class="px-2 py-1 rounded bg-primary-100 text-primary-800 text-sm font-medium hover:bg-primary-200 cursor-pointer" >#{tag}
{/each}
{/if}
{#if event.kind !== 0}
Content:
{@html showFullContent ? parsedContent : contentPreview} {#if !showFullContent && parsedContent.length > 250}
(showFullContent = true)}>Show more
{/if}
{/if}
{#if event.kind === 0}
{/if} {#if event.tags && event.tags.length}
Event Tags:
{#each event.tags as tag} {@const tagInfo = getTagButtonInfo(tag)} {#if tagInfo.text && tagInfo.gotoValue}
{ // Handle different types of gotoValue if ( tagInfo.gotoValue!.startsWith("naddr") || tagInfo.gotoValue!.startsWith("nevent") || tagInfo.gotoValue!.startsWith("npub") || tagInfo.gotoValue!.startsWith("nprofile") || tagInfo.gotoValue!.startsWith("note") ) { // For naddr, nevent, npub, nprofile, note - navigate directly goto(`/events?id=${tagInfo.gotoValue!}`); } else if (tagInfo.gotoValue!.startsWith("/")) { // For relative URLs - navigate directly goto(tagInfo.gotoValue!); } else if (tagInfo.gotoValue!.startsWith("d:")) { // For d-tag searches - navigate to d-tag search const dTag = tagInfo.gotoValue!.substring(2); goto(`/events?d=${encodeURIComponent(dTag)}`); } else if (tagInfo.gotoValue!.startsWith("t:")) { // For t-tag searches - navigate to t-tag search const tTag = tagInfo.gotoValue!.substring(2); goto(`/events?t=${encodeURIComponent(tTag)}`); } else if (/^[0-9a-fA-F]{64}$/.test(tagInfo.gotoValue!)) { // For hex event IDs - use navigateToEvent navigateToEvent(tagInfo.gotoValue!); } else { // For other cases, try direct navigation goto(`/events?id=${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" > {tagInfo.text}
{/if} {/each}
{/if}
Show Raw Event JSON
{JSON.stringify(event.rawEvent(), null, 2)}