From 87a8da93e8547dddf23600b2012a41ea38d5e213 Mon Sep 17 00:00:00 2001 From: KMY Date: Fri, 18 Aug 2023 18:53:15 +0900 Subject: [PATCH] Fix card blur when cw post --- app/javascript/mastodon/components/status.jsx | 2 +- .../mastodon/features/status/components/detailed_status.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/status.jsx b/app/javascript/mastodon/components/status.jsx index 2b95f1fa8e..93195e61ea 100644 --- a/app/javascript/mastodon/components/status.jsx +++ b/app/javascript/mastodon/components/status.jsx @@ -558,7 +558,7 @@ class Status extends ImmutablePureComponent { onOpenMedia={this.handleOpenMedia} card={status.get('card')} compact - sensitive={status.get('sensitive')} + sensitive={status.get('sensitive') && !status.get('spoiler_text')} /> ); isCardMediaWithSensitive = status.get('spoiler_text').length > 0; diff --git a/app/javascript/mastodon/features/status/components/detailed_status.jsx b/app/javascript/mastodon/features/status/components/detailed_status.jsx index 70d6d4f8c3..38963ad88f 100644 --- a/app/javascript/mastodon/features/status/components/detailed_status.jsx +++ b/app/javascript/mastodon/features/status/components/detailed_status.jsx @@ -232,7 +232,7 @@ class DetailedStatus extends ImmutablePureComponent { ); } } else if (status.get('card')) { - media = ; + media = ; isCardMediaWithSensitive = status.get('spoiler_text').length > 0; }