about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-06 13:04:34 +0200
committermultiple creatures <dev@multiple-creature.party>2019-11-19 16:39:22 -0600
commit2c2b0dcb84420d65ce9ddf9dbc781d457a2915ab (patch)
treec3c134f2ba76c1ea0b7780fa4453fe97c68c3b61 /app/javascript/flavours
parent924e5357795067bf6eb78f9ed3f4615ffaa1f5d4 (diff)
[Glitch] Fix “mark as sensitive” not being used in delete & redraft
Port 2657765d2a6804f34ce65bfdab7ec96f07d99732 to glitch-soc
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/reducers/compose.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js
index a40299e20..f7c6f4fca 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -451,6 +451,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);