diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-14 17:52:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 17:52:31 +0100 |
commit | 2d54986a03675dbad940948177037ce2f12d11b9 (patch) | |
tree | f5cb4c5e4253a27d98a400d63ff5112fb2982152 /app/javascript | |
parent | 75299a042c8ead006a059fe13abf790580252660 (diff) |
Fix media metadata being only editable once (#20665)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/reducers/compose.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index afb8b40c1..8cc7bf520 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -436,7 +436,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; |