Only set CW if there's spoiler text

Some posts have sensitive media but no spoiler text
This commit is contained in:
Lim Chee Aun 2023-10-15 11:24:44 +08:00
parent c80c8b3294
commit 6540dd5642

View file

@ -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;