diff --git a/src/app.html b/src/app.html index 61643be6..487b7061 100644 --- a/src/app.html +++ b/src/app.html @@ -5,11 +5,6 @@ - - - {post.post_view.post.name} - + {post_view.post.name} + - {#if isImage(post.post_view.post.url)} - + {#if post_view.post.thumbnail_url} + {/if} - {#if post.post_view.post.body} - + {#if post_view.post.body} + + {/if} @@ -152,19 +151,19 @@

- +

- {#if isImage(post.post_view.post.url)} + {#if isImage(post_view.post.url)} {post.post_view.post.name} - {:else if isVideo(post.post_view.post.url)} + {:else if isVideo(post_view.post.url)} - {:else if post.post_view.post.url} + {:else if post_view.post.url} {/if} - {#if post.post_view.post.body} + {#if post_view.post.body}
- +
{/if}
toast({ content: 'The post was edited successfully.', @@ -210,22 +209,22 @@ })} />
- {#if post.cross_posts?.length > 0} + {#if data.post.cross_posts?.length > 0}
Crossposts - {post.cross_posts.length} + {data.post.cross_posts.length}
- {#each post.cross_posts as crosspost} + {#each data.post.cross_posts as crosspost}
- +
@@ -296,13 +295,13 @@ {#if $profile?.user} {#if showCreateComment} (comments.comments = [ comment.detail.comment_view, ...comments.comments, ])} - locked={post.post_view.post.locked || + locked={post_view.post.locked || $page.params.instance.toLowerCase() != $instance.toLowerCase()} /> {:else} @@ -322,10 +321,10 @@
{:then comments} - + {#if comments.length > 5} - You've viewed {post.post_view.counts.comments} comments. + You've viewed {post_view.counts.comments} comments.