about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-14 18:31:04 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-14 18:31:04 +0100
commit9ab4e3fc6d835c2beeb6768abc05b7f074236777 (patch)
tree3992dd1ddba539a84d372fb57dd13c047a703889 /app
parent72335694744da87cbfaff20992cb36817f6f8a60 (diff)
parent2d54986a03675dbad940948177037ce2f12d11b9 (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/reducers/compose.js2
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;