]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix content warning being unnecessarily cleared when enabling/disabling CW
authorThibG <thib@sitedethib.com>
Tue, 31 Mar 2020 12:10:18 +0000 (14:10 +0200)
committerThibaut Girka <thib@sitedethib.com>
Thu, 2 Apr 2020 18:45:46 +0000 (20:45 +0200)
Port cf1fa73347c9ca2b1c4f14521e990feba7509e2e to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/reducers/compose.js

index 92a9859d950c6a4877f3eb6d126c9f90d8f3781c..f758d5c93c3238208119e7dee9bb1264c73bde19 100644 (file)
@@ -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());