diff --git a/src/lib/components/lemmy/post/Post.svelte b/src/lib/components/lemmy/post/Post.svelte index 932c603f..a34c2f60 100644 --- a/src/lib/components/lemmy/post/Post.svelte +++ b/src/lib/components/lemmy/post/Post.svelte @@ -20,13 +20,13 @@ -
-
+
+
- {:else if post.post.thumbnail_url && post.post.url} + {:else if post.post.url} {/if} @@ -103,8 +103,8 @@ {#if post.post.body && !post.post.nsfw}
{#if post.post.body.length > (compact ? 200 : 600)} diff --git a/src/lib/components/lemmy/post/PostLink.svelte b/src/lib/components/lemmy/post/PostLink.svelte index 91f22a0b..dceb331d 100644 --- a/src/lib/components/lemmy/post/PostLink.svelte +++ b/src/lib/components/lemmy/post/PostLink.svelte @@ -3,12 +3,13 @@ import { Icon, Link as LinkIcon } from 'svelte-hero-icons' export let url: string - export let thumbnail_url: string + export let thumbnail_url: string | undefined = undefined export let nsfw: boolean = false +{#if thumbnail_url} +{/if}