Fix “mark as sensitive” not being used in delete & redraft (#10980)

lolsob-rspec
ThibG 2019-06-06 13:04:34 +02:00 committed by Eugen Rochko
parent cb4f45ab83
commit 024ec0759c
1 changed files with 1 additions and 0 deletions

View File

@ -338,6 +338,7 @@ export default function compose(state = initialState, action) {
map.set('focusDate', new Date());
map.set('caretPosition', null);
map.set('idempotencyKey', uuid());
map.set('sensitive', action.status.get('sensitive'));
if (action.status.get('spoiler_text').length > 0) {
map.set('spoiler', true);