mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-04 01:15:12 +01:00
Fix “open” link of media modal not closing modal (#16524)
This commit is contained in:
parent
77d0297313
commit
9c610ca0a4
@ -114,7 +114,11 @@ class Footer extends ImmutablePureComponent {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { status } = this.props;
|
const { status, onClose } = this.props;
|
||||||
|
|
||||||
|
if (onClose) {
|
||||||
|
onClose();
|
||||||
|
}
|
||||||
|
|
||||||
router.history.push(`/statuses/${status.get('id')}`);
|
router.history.push(`/statuses/${status.get('id')}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user