Browse Source

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

closed-social-glitch-2
Claire 3 years ago
committed by GitHub
parent
commit
af08229ff4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/javascript/mastodon/features/picture_in_picture/components/footer.js

+ 5
- 1
app/javascript/mastodon/features/picture_in_picture/components/footer.js 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')}`);
}

Loading…
Cancel
Save