From 5b3accdc53786a7c7ce4d92f8d74faf4e665dbc2 Mon Sep 17 00:00:00 2001 From: Mary Kate Date: Mon, 10 Aug 2020 18:18:23 -0500 Subject: [PATCH] Hotfix to remove media uploads entirely on del and redraft compose form since it was tricking user into thinking it would retain the media when submitted --- app/soapbox/reducers/compose.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/reducers/compose.js b/app/soapbox/reducers/compose.js index 28074b347..ad5ea9b64 100644 --- a/app/soapbox/reducers/compose.js +++ b/app/soapbox/reducers/compose.js @@ -337,7 +337,8 @@ export default function compose(state = initialState, action) { map.set('text', action.raw_text || unescapeHTML(expandMentions(action.status))); map.set('in_reply_to', action.status.get('in_reply_to_id')); map.set('privacy', action.status.get('visibility')); - map.set('media_attachments', action.status.get('media_attachments')); + // TODO: Actually fix this rather than just removing it + // map.set('media_attachments', action.status.get('media_attachments')); map.set('focusDate', new Date()); map.set('caretPosition', null); map.set('idempotencyKey', uuid());