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

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 }