Browse Source

[Glitch] Fix “mark as sensitive” not being used in delete & redraft

Port 2657765d2a to glitch-soc
closed-social-glitch-2
ThibG 5 years ago
committed by Thibaut Girka
parent
commit
417989ae34
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/javascript/flavours/glitch/reducers/compose.js

+ 1
- 0
app/javascript/flavours/glitch/reducers/compose.js View File

@ -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);

Loading…
Cancel
Save