]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix regression in “Edit media” modal in web UI
authorThibG <thib@sitedethib.com>
Tue, 10 Mar 2020 10:59:44 +0000 (11:59 +0100)
committerThibaut Girka <thib@sitedethib.com>
Sun, 22 Mar 2020 15:30:19 +0000 (16:30 +0100)
Port 90f3a0006243250ced6e7e192f81513d6b731b33 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/actions/compose.js

index 966d605d122a1d5ff4b1aa31ec84332d25a451db..f98cb7bf8643f20bf0a862b2159ac841bfea77ad 100644 (file)
@@ -274,7 +274,7 @@ export function uploadCompose(files) {
             const poll = () => {
               api(getState).get(`/api/v1/media/${data.id}`).then(response => {
                 if (response.status === 200) {
-                  dispatch(uploadComposeSuccess(data, f));
+                  dispatch(uploadComposeSuccess(response.data, f));
                 } else if (response.status === 206) {
                   setTimeout(() => poll(), 1000);
                 }