about summary refs log tree commit diff
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:38:32 -0600
commitdf2518da9e46fab53fb3189d7978a285eee67f12 (patch)
treeedbadc36f30d27896a812a2b707ef112c3dac3db
parentd5cebd1cc8a58359c2337ceac9f7ec2fd62eb726 (diff)
Fix “mark as sensitive” not being used in delete & redraft (#10980)
-rw-r--r--app/javascript/mastodon/reducers/compose.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js
index 708272591..29c691144 100644
--- a/app/javascript/mastodon/reducers/compose.js
+++ b/app/javascript/mastodon/reducers/compose.js
@@ -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);