sforkowany z mirror/soapbox
Merge branch 'edit-media-attachments' into 'develop'
Allow reusing media_attachments if editing posts See merge request soapbox-pub/soapbox-fe!1652rtk-query
commit
6b23aee703
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue