From 2960704d59b5dc33b28b686adfc36543cce80cbe Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 26 May 2024 21:34:13 +0200 Subject: [PATCH] show description from post when moderator pinned it --- src/lib/components/PostSection.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/components/PostSection.svelte b/src/lib/components/PostSection.svelte index f147a20f..3aa1c711 100644 --- a/src/lib/components/PostSection.svelte +++ b/src/lib/components/PostSection.svelte @@ -433,11 +433,10 @@ $: { {posts?.title} - {#if !posts?.pinned} +
{@html posts?.description?.length > 182 ? posts?.description.slice(0, 182) + "..." : posts?.description}
- {/if}