about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-07-25 01:13:46 +0200
committerGitHub <noreply@github.com>2021-07-25 01:13:46 +0200
commitaf08229ff43cf61b6b3eb386ca9d6205d05dc295 (patch)
treedbaeefa664341bef8f4495375633d2c7aadc9b01 /app
parent1d67acb72fa418a456c5e4762425702bfe7702b1 (diff)
Fix “open” link of media modal not closing modal (#16524)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/picture_in_picture/components/footer.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/picture_in_picture/components/footer.js b/app/javascript/mastodon/features/picture_in_picture/components/footer.js
index 1ecb18bf8..f5ce50ac8 100644
--- a/app/javascript/mastodon/features/picture_in_picture/components/footer.js
+++ b/app/javascript/mastodon/features/picture_in_picture/components/footer.js
@@ -114,7 +114,11 @@ class Footer extends ImmutablePureComponent {
       return;
     }
 
-    const { status } = this.props;
+    const { status, onClose } = this.props;
+
+    if (onClose) {
+      onClose();
+    }
 
     router.history.push(`/statuses/${status.get('id')}`);
   }