[Glitch] Fix “open” link of media modal not closing modal

Port af08229ff4 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/1570/head
Claire 2021-07-25 01:13:46 +02:00
parent b5e10d07ff
commit 08139d3cd7
1 changed files with 5 additions and 1 deletions

View File

@ -116,7 +116,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')}`);
}