1
0
mirror of https://github.com/whippyshou/mastodon synced 2025-01-18 15:53:12 +09:00

Fix “open” link of media modal not closing modal (#16524)

This commit is contained in:
Claire 2021-07-25 01:13:46 +02:00 committed by GitHub
parent 1d67acb72f
commit af08229ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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')}`);
}