]> cat aescling's git repositories - mastodon.git/commitdiff
Fix “open” link of media modal not closing modal (#16524)
authorClaire <claire.github-309c@sitedethib.com>
Sat, 24 Jul 2021 23:13:46 +0000 (01:13 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Jul 2021 23:13:46 +0000 (01:13 +0200)
app/javascript/mastodon/features/picture_in_picture/components/footer.js

index 1ecb18bf8205937c5c81189253233e141494c015..f5ce50ac81c9514b5db3f34a8568eca08be46bff 100644 (file)
@@ -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')}`);
   }