Fix status mismatch of sensitive check (#21724)

main
kedama 2 years ago committed by GitHub
parent f17fc5742e
commit 14e2354eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -337,6 +337,10 @@ export default function compose(state = initialState, action) {
if (action.status.get('spoiler_text').length > 0) {
map.set('spoiler', true);
map.set('spoiler_text', action.status.get('spoiler_text'));
if (map.get('media_attachments').size >= 1) {
map.set('sensitive', true);
}
} else {
map.set('spoiler', false);
map.set('spoiler_text', '');

Loading…
Cancel
Save