Fix media open hotkey (#12546)

master
Jeong Arm 5 years ago committed by Eugen Rochko
parent 04582e3c3e
commit 76adde4fe2
  1. 3
      app/javascript/mastodon/components/status.js
  2. 2
      app/javascript/mastodon/features/status/index.js

@ -215,7 +215,8 @@ class Status extends ImmutablePureComponent {
}
handleHotkeyOpenMedia = e => {
const { status, onOpenMedia, onOpenVideo } = this.props;
const { onOpenMedia, onOpenVideo } = this.props;
const status = this._properStatus();
e.preventDefault();

@ -282,7 +282,7 @@ class Status extends ImmutablePureComponent {
}
handleHotkeyOpenMedia = e => {
const { status } = this.props;
const status = this._properStatus();
e.preventDefault();

Loading…
Cancel
Save