diff --git a/src/lib/components/lemmy/post/Post.svelte b/src/lib/components/lemmy/post/Post.svelte index d26c11a5..9dcbba94 100644 --- a/src/lib/components/lemmy/post/Post.svelte +++ b/src/lib/components/lemmy/post/Post.svelte @@ -68,11 +68,6 @@ view != 'compact' && type != 'iframe', ) - let hideBody = $derived( - settings.posts.deduplicateEmbed && - post.post.embed_description == post.post.body && - view != 'compact', - ) let badges = $derived({ deleted: post.post.deleted, @@ -154,7 +149,7 @@ /> {/if} {/key} - {#if post.post.body && !post.post.nsfw && view != 'compact' && !hideBody && rule != 'hide'} + {#if post.post.body && !post.post.nsfw && view != 'compact'} diff --git a/src/lib/components/lemmy/post/PostVote.svelte b/src/lib/components/lemmy/post/PostVote.svelte index 9f927bd1..088b468f 100644 --- a/src/lib/components/lemmy/post/PostVote.svelte +++ b/src/lib/components/lemmy/post/PostVote.svelte @@ -35,15 +35,15 @@ upvotes?: number downvotes?: number showCounts?: boolean - children?: import('svelte').Snippet<[{ vote: number; score: number }]> + children?: import('svelte').Snippet<[{ vote?: number; score?: number }]> } let { post = $bindable(), - vote = $bindable(0), + vote = $bindable(), score = $bindable(), - upvotes = $bindable(0), - downvotes = $bindable(0), + upvotes = $bindable(), + downvotes = $bindable(), showCounts = true, children, }: Props = $props() @@ -99,7 +99,7 @@ out:fly={{ duration: 400, y: 10, easing: backOut }} aria-label={$t('aria.vote.upvotes', { default: upvotes })} > - + {/key} @@ -127,7 +127,7 @@ out:fly={{ duration: 400, y: 10, easing: backOut }} aria-label={$t('aria.vote.downvotes', { default: downvotes })} > - + {/key} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 65a3f188..34fe1825 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -9,6 +9,7 @@ import Pageination from '$lib/components/ui/Pageination.svelte' import { t } from '$lib/i18n/translations.js' import { site } from '$lib/lemmy.svelte.js' + import { postFeeds } from '$lib/lemmy/postfeed.svelte.js' import { settings } from '$lib/settings.svelte.js' import Button from 'mono-svelte/button/Button.svelte' import { ArrowRight, ChartBar, Icon } from 'svelte-hero-icons' @@ -63,7 +64,7 @@ data.feed, v => (postFeeds.value.main.data = v)} feedId="main" /> toast({ content: 'The post was edited successfully.',