{#if fullView} {#if isReply()} {/if} {#if hasQuotedEvent()} {/if} {@const title = getTitle()} {#if title && title !== 'Untitled'}

{title}

{/if}
{#if isLoggedIn && bookmarked} 🔖 {/if}
{getRelativeTime()} {#if getClientName()} via {getClientName()} {/if} {#if post.kind === KIND.DISCUSSION_THREAD} {@const topics = getTopics()} {#if topics.length === 0} General {:else} {#each topics.slice(0, 3) as topic} {topic} {/each} {/if} {/if}

{:else}
{getRelativeTime()} {#if getClientName()} via {getClientName()} {/if} {#if post.kind === KIND.DISCUSSION_THREAD} {@const topics = getTopics()} {#if topics.length === 0} General {:else} {#each topics.slice(0, 3) as topic} {topic} {/each} {/if} {/if}

{@const title = getTitle()} {#if title && title !== 'Untitled'}

{title}

{/if}

{#each parseContentWithNIP21Links() as segment} {#if segment.type === 'text'} {segment.content} {:else if segment.type === 'profile' && segment.pubkey} {:else if segment.type === 'event' && segment.eventId} {segment.content} {:else if segment.type === 'url' && segment.url} {@const isMediaUrl = /\.(jpg|jpeg|png|gif|webp|svg|bmp|mp4|webm|ogg|mov|avi|mkv|mp3|wav|ogg|flac|aac|m4a)(\?|#|$)/i.test(segment.url)} {#if isMediaUrl} {:else} e.stopPropagation()} > {segment.content} {/if} {:else if segment.type === 'wikilink' && segment.wikilink} e.stopPropagation()} > {segment.content} {:else if segment.type === 'hashtag' && segment.hashtag} e.stopPropagation()} > {segment.content} {/if} {/each}

{#if getMediaUrls().length > 0} {@const mediaUrls = getMediaUrls()}
{#each mediaUrls as url} {/each}
{/if}
{#if !fullView && shouldCollapse}
{/if} {#if !fullView} {/if} {/if} {#if fullView}
{getKindInfo(post.kind).number} {getKindInfo(post.kind).description}
{/if}
{#if isLoggedIn}
{#if showReplyForm}
{ showReplyForm = false; }} onCancel={() => { showReplyForm = false; }} />
{/if} {/if} {#if mediaViewerUrl && mediaViewerOpen} {/if}