fix: hide embeds in spoilered statuses (#2143)

Fixes #2142
This commit is contained in:
Nolan Lawson 2022-05-07 10:04:57 -07:00 committed by GitHub
parent b312b3b485
commit 78687479df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 }