diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-14 17:52:31 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-11-14 18:32:33 +0100 |
commit | 96c1ef6d5075cdab9c4340e4b999737e3c7d1589 (patch) | |
tree | 9f4030e4ab62ce02f2ed194d9dfde94fe8761de3 /app/javascript | |
parent | 9ab4e3fc6d835c2beeb6768abc05b7f074236777 (diff) |
[Glitch] Fix media metadata being only editable once
Port 2d54986a03675dbad940948177037ce2f12d11b9 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/compose.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js index 18e437bbc..1edc70add 100644 --- a/app/javascript/flavours/glitch/reducers/compose.js +++ b/app/javascript/flavours/glitch/reducers/compose.js @@ -547,7 +547,7 @@ export default function compose(state = initialState, action) { .setIn(['media_modal', 'dirty'], false) .update('media_attachments', list => list.map(item => { if (item.get('id') === action.media.id) { - return fromJS(action.media); + return fromJS(action.media).set('unattached', true); } return item; |