]> cat aescling's git repositories - mastodon.git/commitdiff
Fix “mark as sensitive” not being used in delete & redraft (#10980)
authorThibG <thib@sitedethib.com>
Thu, 6 Jun 2019 11:04:34 +0000 (13:04 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Jun 2019 11:04:34 +0000 (13:04 +0200)
app/javascript/mastodon/reducers/compose.js

index 7082725910641b97b1ec68b33dcff900ffe48ba0..29c69114403d55743a48e17ae25279f95a4ddff2 100644 (file)
@@ -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);