Allow reusing media_attachments if editing posts

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
merge-requests/1652/head
marcin mikołajczak 2022-07-18 23:31:40 +02:00
rodzic 827146ad17
commit 2ba135bdce
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);