]> cat aescling's git repositories - mastodon.git/commitdiff
Fix content warning being unnecessarily cleared when enabling/disabling CW (#13348)
authorThibG <thib@sitedethib.com>
Tue, 31 Mar 2020 12:10:18 +0000 (14:10 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Mar 2020 12:10:18 +0000 (14:10 +0200)
app/javascript/mastodon/reducers/compose.js

index c6653fe4cdf9128c3c0b0ca59249090c09aebc2b..e6e6d2ae1e744205ea8c2020ce5da63bc6f49e7f 100644 (file)
@@ -261,7 +261,6 @@ export default function compose(state = initialState, action) {
     });
   case COMPOSE_SPOILERNESS_CHANGE:
     return state.withMutations(map => {
-      map.set('spoiler_text', '');
       map.set('spoiler', !state.get('spoiler'));
       map.set('idempotencyKey', uuid());