about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/reducers
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-01-18 16:33:55 +0100
committerClaire <claire.github-309c@sitedethib.com>2023-01-18 17:52:45 +0100
commitb5c6a116a765ba2d336ff1c3ec4acd66bb41a3fb (patch)
treecb3f454577462bf4e32ed5210fe95bee00ec7617 /app/javascript/flavours/glitch/reducers
parent9b4afb320a55761259a6e467cb1b4b6b5fb447f0 (diff)
[Glitch] Add support for editing media description and focus point of already-posted statuses
Port 4b92e59f4fea4486ee6e5af7421e7945d5f7f998 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/reducers')
-rw-r--r--app/javascript/flavours/glitch/reducers/compose.js2
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 814b6a1a7..a69c0f7f2 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -551,7 +551,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).set('unattached', true);
+          return fromJS(action.media).set('unattached', !action.attached);
         }
 
         return item;