{
onClick(e)
}}
onkeydown={(e) => {
// @ts-ignore
if (e.key == 'Enter') onClick(e)
}}
tabindex="0"
{style}
>
c.community.id)
.includes(post.community.id)
? 'Subscribed'
: 'NotSubscribed'}
id={post.post.id}
title={hideTitle ? undefined : tags?.title ? tags.title : post.post.name}
read={post.read}
style="grid-area: meta;"
edited={post.post.updated}
tags={tags?.tags}
{view}
>
{#snippet extraBadges()}
{@render badges?.()}
{/snippet}
{#key post.post.url}
{#if rule != 'hide'}
{/if}
{#if view == 'compact'}
{/if}
{/key}
{#if post.post.body && !post.post.nsfw && view != 'compact' && !hideBody && rule != 'hide'}
{/if}
{#if actions}
{:else if view == 'compact'}
{#snippet icon()}
{/snippet}
{post.counts.score}
{#snippet icon()}
{/snippet}
{post.counts.comments}
{/if}