{#if showCommunity && community} {#snippet target(attachment)} {/snippet} {#snippet popover(open)} {#if open && community}
{community.name} {#if community.handle} @{community.handle} {/if}
{/if} {/snippet}
{/if} {#if showCommunity && community} {/if}
{#if user}
{#if view == 'compact' && showCommunity} {/if}
{/if} {#if published} {/if} {#if edited} {/if}
{#if tags} {#each tags as tag} {@const href = tag.type == 'flair' ? null : `/search?q=[${tag.content}]&type=Posts`} {#snippet icon()} {#if tag.icon} {:else if tag === undefined} {/if} {/snippet} {tag.content} {/each} {/if} {#each Object.keys(badges) // filter by ones that are true .filter((i) => badges[i as BadgeType] == true) // get from predetermined map .map((i) => badgeToData.get(i as BadgeType)) // remove null .filter((i) => i != undefined) as badge} {#snippet icon()} {/snippet}{badge.label} {/each} {@render extraBadges?.()}
{#if title && uri} {@const useAttachedUrl = settings.posts.titleOpensUrl && postUrl}

{:else}
{/if}