fix if click name in QT can't show post owner's profile(7)

This commit is contained in:
YoheiZuho 2022-05-01 19:31:59 +09:00
parent 74f1f1fe0d
commit f24825d4bb

View File

@ -185,12 +185,12 @@ class Status extends ImmutablePureComponent {
this.handleAccountClick(e, false);
}
handleAccountClick = (e, proper = true) => {
if (this.context.router && e.button === 0 && !(e.ctrlKey || e.metaKey)) {
const id = e.currentTarget.getAttribute('data-id');
e.preventDefault();
this.context.router.history.push(`/accounts/${id}`);
}
handleAccountClick = (e, proper = true) => {
// if (this.context.router && e.button === 0 && !(e.ctrlKey || e.metaKey)) {
// const id = e.currentTarget.getAttribute('data-id');
// e.preventDefault();
// this.context.router.history.push(`/accounts/${id}`);
// }
this._openProfile(proper);
}