fix cant open profile on TL

This commit is contained in:
YoheiZuho 2022-05-01 15:43:52 +09:00
parent 73fa524575
commit b6a0c195cb

View File

@ -186,10 +186,17 @@ class Status extends ImmutablePureComponent {
} }
handleAccountClick = (e, proper = true) => { handleAccountClick = (e, proper = true) => {
if (e && (e.button !== 0 || e.ctrlKey || e.metaKey)) { if (e && (e.button !== 0 || e.ctrlKey || e.metaKey)) {
return; return;
} }
if (e) {
e.preventDefault();
}
this._openProfile(proper);
} }
handleQuoteClick = () => { handleQuoteClick = () => {
if (!this.context.router) { if (!this.context.router) {
return; return;
@ -199,14 +206,6 @@ class Status extends ImmutablePureComponent {
this.context.router.history.push(`/statuses/${status.getIn(['reblog', 'quote', 'id'], status.getIn(['quote', 'id']))}`); 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 = () => { handleExpandedToggle = () => {
this.props.onToggleHidden(this._properStatus()); this.props.onToggleHidden(this._properStatus());
} }