{data.post.post_view.post.name} {#if isImage(data.post.post_view.post.url)} {:else if data.post.post_view.post.thumbnail_url} {/if} {#if data.post.post_view.post.body} {/if}
{#if remoteView} {/if}

{#if data.post.post_view.post.body}
{/if}
toast({ content: 'The post was edited successfully.', type: 'success', })} />
{#if data.post.cross_posts?.length > 0} {#snippet title()}
{data.post.cross_posts.length} {$t('routes.post.crosspostCount')}
{/snippet}
{#each data.post.cross_posts as crosspost} {/each}
{/if}
{#if data.thread.showContext || data.thread.singleThread}

{data.thread.showContext ? $t('routes.post.thread.part') : $t('routes.post.thread.single')}

{/if}
{$t('routes.post.commentCount')}
{#await data.comments}
{#each new Array(10) as empty}
{/each}
{:then comments} {#if $profile?.jwt} {#if !commenting} {#snippet action()}
{/snippet}
{:else} (comments.comments = [ comment.detail.comment_view, ...comments.comments, ])} locked={(data.post.post_view.post.locked && !( $profile?.user?.local_user_view.local_user.admin || $profile?.user?.moderates .map((c) => c.community.id) .includes(data.post.community_view.community.id) )) || $page.params.instance.toLowerCase() != $instance.toLowerCase()} banned={data.post.community_view.banned_from_community} on:focus={() => (commenting = true)} tools={commenting} preview={commenting} placeholder={commenting ? undefined : $t('routes.post.addComment')} rows={commenting ? 7 : 1} on:cancel={() => (commenting = false)} /> {/if} {/if} {#if commenting || !$profile.jwt}
{/if} !( (settings.hidePosts.deleted && c.comment.deleted) || (settings.hidePosts.removed && c.comment.removed) ), )} scrollTo={data.thread.focus} /> {#if comments.comments.length == 0} {/if} {/await} {#if data.post.post_view.counts.comments > 5} {data.post.post_view.counts.comments} {$t('routes.post.commentCount')} {#snippet action()} {/snippet} {/if}