diff --git a/src/lib/components/lemmy/post/Post.svelte b/src/lib/components/lemmy/post/Post.svelte index 0db54653..46e7b80a 100644 --- a/src/lib/components/lemmy/post/Post.svelte +++ b/src/lib/components/lemmy/post/Post.svelte @@ -20,6 +20,7 @@ import PostMedia from '$lib/components/lemmy/post/media/PostMedia.svelte' import PostMediaCompact from '$lib/components/lemmy/post/media/PostMediaCompact.svelte' import PostBody from './PostBody.svelte' + import { profile } from '$lib/auth' export let post: PostView export let actions: boolean = true @@ -61,6 +62,11 @@ featured={post.post.featured_local || post.post.featured_community} nsfw={post.post.nsfw} saved={post.saved} + subscribed={$profile?.user?.follows + .map((c) => c.community.id) + .includes(post.community.id) + ? 'Subscribed' + : 'NotSubscribed'} > diff --git a/src/lib/components/lemmy/post/PostLink.svelte b/src/lib/components/lemmy/post/PostLink.svelte index b01f52fb..4bd702e7 100644 --- a/src/lib/components/lemmy/post/PostLink.svelte +++ b/src/lib/components/lemmy/post/PostLink.svelte @@ -14,7 +14,7 @@ {#if embed_title && !compact} - + {#if richURL} {#if embed_description} - - {embed_description.slice(0, 300)} + + {embed_description.slice(0, 300)}{embed_description.length > 300 + ? '...' + : ''} {/if} {#if thumbnail_url} - + {/if} {/if} + +
- {embed_description.slice(0, 300)} +
+ {embed_description.slice(0, 300)}{embed_description.length > 300 + ? '...' + : ''}