fix: hide embeds in spoilered statuses

Fixes #2142
This commit is contained in:
Nolan Lawson 2022-05-07 09:33:31 -07:00
parent b312b3b485
commit d7b1af34c9
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@
{#if content && (showContent || preloadHiddenContent)}
<StatusContent {...params} shown={showContent}/>
{/if}
{#if showCard }
<!-- Apparently it's possible for spoilered content to sometimes have embeds, but I can't figure out how.
Don't bother optimizing this with the preloadHiddenContent. -->
{#if showCard && showContent}
<StatusCard {...params} />
{/if}
{#if showMedia }