From 6540dd5642f03180df685bf8e4af188f8c35dc43 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 15 Oct 2023 11:24:44 +0800 Subject: [PATCH] Only set CW if there's spoiler text Some posts have sensitive media but no spoiler text --- src/components/compose.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 881c55bc..5a1f47c7 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -185,7 +185,7 @@ function Compose({ : visibility, ); setLanguage(language || prefs.postingDefaultLanguage || DEFAULT_LANG); - setSensitive(sensitive); + setSensitive(sensitive && !!spoilerText); } else if (editStatus) { const { visibility, language, sensitive, poll, mediaAttachments } = editStatus;