~cytrogen/masto-fe

417989ae34594df3d6ce720dfe70132158b6da28 — ThibG 6 years ago b32a62f
[Glitch] Fix “mark as sensitive” not being used in delete & redraft

Port 2657765d2a6804f34ce65bfdab7ec96f07d99732 to glitch-soc
1 files changed, 1 insertions(+), 0 deletions(-)

M app/javascript/flavours/glitch/reducers/compose.js
M app/javascript/flavours/glitch/reducers/compose.js => app/javascript/flavours/glitch/reducers/compose.js +1 -0
@@ 442,6 442,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);