mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 20:28:52 +03:00
Only set CW if there's spoiler text
Some posts have sensitive media but no spoiler text
This commit is contained in:
parent
c80c8b3294
commit
6540dd5642
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue