From 18f73aae7c2723ee443e54bed09941398573f9f4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 31 Oct 2022 16:50:06 -0500 Subject: [PATCH] Compose: don't inherit spoilerness of post being replied to --- app/soapbox/reducers/compose.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/soapbox/reducers/compose.ts b/app/soapbox/reducers/compose.ts index bdfcf3009..3f02f8cac 100644 --- a/app/soapbox/reducers/compose.ts +++ b/app/soapbox/reducers/compose.ts @@ -316,14 +316,6 @@ export default function compose(state = initialState, action: AnyAction) { map.set('caretPosition', null); map.set('idempotencyKey', uuid()); map.set('content_type', defaultCompose.content_type); - - if (action.status.get('spoiler_text', '').length > 0) { - map.set('spoiler', true); - map.set('spoiler_text', action.status.spoiler_text); - } else { - map.set('spoiler', false); - map.set('spoiler_text', ''); - } })); case COMPOSE_QUOTE: return updateCompose(state, 'compose-modal', compose => compose.withMutations(map => {