about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-03-31 14:10:18 +0200
committerThibaut Girka <thib@sitedethib.com>2020-04-02 20:45:46 +0200
commit9175ebf20ce9808b63b552d4ba2ceec8eaa8a67b (patch)
treef8c44b573ed680f7f7c6c189602c96f5b9f6ed4b
parentdcf841545dbdcafaafa2cb436c0124efa2aaa769 (diff)
[Glitch] Fix content warning being unnecessarily cleared when enabling/disabling CW
Port cf1fa73347c9ca2b1c4f14521e990feba7509e2e to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
-rw-r--r--app/javascript/flavours/glitch/reducers/compose.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js
index 92a9859d9..f758d5c93 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -344,7 +344,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());