about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-06 13:04:34 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-06-06 13:04:34 +0200
commit2657765d2a6804f34ce65bfdab7ec96f07d99732 (patch)
tree71120554d152cd915da274f311a68ee963ad5369 /app
parent70423ce81ff43919a96688257ae3517066e483b1 (diff)
Fix “mark as sensitive” not being used in delete & redraft (#10980)
Diffstat (limited to 'app')
-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);