From 2ba135bdceec988cbccbe4c94c681cbe34e1bf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 18 Jul 2022 23:31:40 +0200 Subject: [PATCH] Allow reusing media_attachments if editing posts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/reducers/compose.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/reducers/compose.ts b/app/soapbox/reducers/compose.ts index 5bfa8716d..d2fd1b3fe 100644 --- a/app/soapbox/reducers/compose.ts +++ b/app/soapbox/reducers/compose.ts @@ -462,7 +462,7 @@ export default function compose(state = ReducerRecord({ idempotencyKey: uuid(), map.set('content_type', action.contentType || 'text/plain'); map.set('quote', action.status.get('quote')); - if (action.v?.software === PLEROMA && hasIntegerMediaIds(action.status)) { + if (action.v?.software === PLEROMA && !action.withRedraft && hasIntegerMediaIds(action.status)) { map.set('media_attachments', ImmutableList()); } else { map.set('media_attachments', action.status.media_attachments);