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

- +

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