about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-03-31 14:10:18 +0200
committerGitHub <noreply@github.com>2020-03-31 14:10:18 +0200
commitcf1fa73347c9ca2b1c4f14521e990feba7509e2e (patch)
tree97f6bebbcd65e5bfc9b441d52ffa45263a488e20 /app/javascript
parent31bd62520505cc4595d4ed6f83f6459fbaf8326e (diff)
Fix content warning being unnecessarily cleared when enabling/disabling CW (#13348)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/reducers/compose.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js
index c6653fe4c..e6e6d2ae1 100644
--- a/app/javascript/mastodon/reducers/compose.js
+++ b/app/javascript/mastodon/reducers/compose.js
@@ -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());