From: ThibG Date: Tue, 31 Mar 2020 12:10:18 +0000 (+0200) Subject: [Glitch] Fix content warning being unnecessarily cleared when enabling/disabling CW X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=9175ebf20ce9808b63b552d4ba2ceec8eaa8a67b;p=mastodon.git [Glitch] Fix content warning being unnecessarily cleared when enabling/disabling CW Port cf1fa73347c9ca2b1c4f14521e990feba7509e2e to glitch-soc Signed-off-by: Thibaut Girka --- 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());