Skip to content

Commit

Permalink
fix: hide embeds in spoilered statuses (#2143)
Browse files Browse the repository at this point in the history
Fixes #2142
  • Loading branch information
nolanlawson authored May 7, 2022
1 parent b312b3b commit 7868747
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/_components/status/Status.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 7868747

Please sign in to comment.