show description from post when moderator pinned it

This commit is contained in:
MuslemRahimi 2024-05-26 21:34:13 +02:00
parent d0285b033e
commit 2960704d59

View File

@ -433,11 +433,10 @@ $: {
{posts?.title} {posts?.title}
</div> </div>
{#if !posts?.pinned}
<div class="break-normal ml-3 mt-5 pr-6 sm:pr-0"> <div class="break-normal ml-3 mt-5 pr-6 sm:pr-0">
{@html posts?.description?.length > 182 ? posts?.description.slice(0, 182) + "..." : posts?.description} {@html posts?.description?.length > 182 ? posts?.description.slice(0, 182) + "..." : posts?.description}
</div> </div>
{/if}