Do not mark toots as sensitive if they don't have any media attached
This commit is contained in:
parent
afdf789d06
commit
b0e7af725a
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ export function submitCompose(routerHistory) {
|
||||||
status,
|
status,
|
||||||
in_reply_to_id: getState().getIn(['compose', 'in_reply_to'], null),
|
in_reply_to_id: getState().getIn(['compose', 'in_reply_to'], null),
|
||||||
media_ids: media.map(item => item.get('id')),
|
media_ids: media.map(item => item.get('id')),
|
||||||
sensitive: getState().getIn(['compose', 'sensitive']) || spoilerText.length > 0,
|
sensitive: getState().getIn(['compose', 'sensitive']) || (spoilerText.length > 0 && media.size !== 0),
|
||||||
spoiler_text: spoilerText,
|
spoiler_text: spoilerText,
|
||||||
visibility: getState().getIn(['compose', 'privacy']),
|
visibility: getState().getIn(['compose', 'privacy']),
|
||||||
}, {
|
}, {
|
||||||
|
|
Loading…
Reference in a new issue