diff --git a/package.json b/package.json index ed2feeaf..2bd1d80c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "1.16.7", + "version": "1.17.0", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/lib/components/input/Link.svelte b/src/lib/components/input/Link.svelte index 0edf1c7b..da8d755b 100644 --- a/src/lib/components/input/Link.svelte +++ b/src/lib/components/input/Link.svelte @@ -1,20 +1,27 @@ - - + + + {/if} {#if post.post.body && !post.post.nsfw && view != 'compact'} diff --git a/src/lib/components/lemmy/post/PostLink.svelte b/src/lib/components/lemmy/post/PostLink.svelte index 50485f52..d7318abc 100644 --- a/src/lib/components/lemmy/post/PostLink.svelte +++ b/src/lib/components/lemmy/post/PostLink.svelte @@ -1,14 +1,58 @@ - - -{#if thumbnail_url} +{#if embed_title} + +
+ {#if richURL} + + + {richURL.hostname} + + {/if} + + {embed_title} + + {#if embed_description} +

+ {embed_description.slice(0, 300)} +

+ {/if} +
+ {#if thumbnail_url} + + + + {/if} + +{:else if thumbnail_url} +
+ Skip Navigation - - - - + +