Bläddra i källkod

Fix fav/boosts hotkeys not working on detailed statuses (#9006)

master
ThibG 5 år sedan
committed by Eugen Rochko
förälder
incheckning
007f7690fa
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      app/javascript/mastodon/features/status/index.js

+ 1
- 1
app/javascript/mastodon/features/status/index.js Visa fil

@@ -181,7 +181,7 @@ class Status extends ImmutablePureComponent {
if (status.get('reblogged')) { if (status.get('reblogged')) {
this.props.dispatch(unreblog(status)); this.props.dispatch(unreblog(status));
} else { } else {
if (e.shiftKey || !boostModal) {
if ((e && e.shiftKey) || !boostModal) {
this.handleModalReblog(status); this.handleModalReblog(status);
} else { } else {
this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog })); this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog }));


Laddar…
Avbryt
Spara