{post.post_view.post.name} {#if isImage(post.post_view.post.url)} {/if} {#if post.post_view.post.body} {/if}
{#if $page.params.instance.toLowerCase() != $instance.toLowerCase()}

Warning

This URL is for a different instance than you're logged into. You probably won't be able to vote or comment.

{/if}

{#if isImage(post.post_view.post.url)} {post.post_view.post.name} {:else if isVideo(post.post_view.post.url)} {:else if post.post_view.post.url && !post.post_view.post.thumbnail_url} {post.post_view.post.url} {:else if post.post_view.post.thumbnail_url && post.post_view.post.url} {/if} {#if post.post_view.post.body}
{/if}
toast({ content: 'The post was edited successfully.', type: 'success', })} />
{#if post.cross_posts?.length > 0}
Crossposts {post.cross_posts.length}
{#each post.cross_posts as crosspost}
{crosspost.post.name}
{/each}
{/if}
{#if data.singleThread}

You're viewing a single thread.

{/if}
Comments
{#await data.streamed.comments}
{:then comments} {#if $profile?.user} {#if showCreateComment} (comments.comments = [ comment.detail.comment_view, ...comments.comments, ])} locked={post.post_view.post.locked || $page.params.instance.toLowerCase() != $instance.toLowerCase()} /> {:else} {/if} {/if} {#await buildCommentsTreeAsync(comments.comments)}
{:then comments} {#if comments.length > 5} You've viewed {post.post_view.counts.comments} comments. {/if} {/await} {:catch}
Failed to load comments.
{/await}