about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/reducers/compose.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-06 13:04:34 +0200
committerThibaut Girka <thib@sitedethib.com>2019-06-07 17:39:46 +0200
commit417989ae34594df3d6ce720dfe70132158b6da28 (patch)
tree4a04e122e7ed02af0cf9ee3d9e6938014906fa25 /app/javascript/flavours/glitch/reducers/compose.js
parentb32a62fe957c9c81e03ea3970705ff5eb46abf72 (diff)
[Glitch] Fix “mark as sensitive” not being used in delete & redraft
Port 2657765d2a6804f34ce65bfdab7ec96f07d99732 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/reducers/compose.js')
-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 51a341c42..36dfb8f15 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -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);