diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index f3ce17c68..5f514f040 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -186,10 +186,17 @@ class Status extends ImmutablePureComponent { } handleAccountClick = (e, proper = true) => { - if (e && (e.button !== 0 || e.ctrlKey || e.metaKey)) { + if (e && (e.button !== 0 || e.ctrlKey || e.metaKey)) { return; } + + if (e) { + e.preventDefault(); + } + + this._openProfile(proper); } + handleQuoteClick = () => { if (!this.context.router) { return; @@ -199,14 +206,6 @@ class Status extends ImmutablePureComponent { this.context.router.history.push(`/statuses/${status.getIn(['reblog', 'quote', 'id'], status.getIn(['quote', 'id']))}`); } - handleAccountClick = (e) => { - if (e) { - e.preventDefault(); - } - - this._openProfile(proper); - } - handleExpandedToggle = () => { this.props.onToggleHidden(this._properStatus()); }