]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix “mark as sensitive” not being used in delete & redraft
authorThibG <thib@sitedethib.com>
Thu, 6 Jun 2019 11:04:34 +0000 (13:04 +0200)
committerThibaut Girka <thib@sitedethib.com>
Fri, 7 Jun 2019 15:39:46 +0000 (17:39 +0200)
Port 2657765d2a6804f34ce65bfdab7ec96f07d99732 to glitch-soc

app/javascript/flavours/glitch/reducers/compose.js

index 51a341c4238184d45f700016fd56f47d8fad6a89..36dfb8f1524773c779dd1f8f0e4963df75ba8dc4 100644 (file)
@@ -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);