fix if click name in QT can't show post owner's profile(2)
This commit is contained in:
parent
9df473bc68
commit
5b95560d24
@ -185,16 +185,12 @@ class Status extends ImmutablePureComponent {
|
|||||||
this.handleAccountClick(e, false);
|
this.handleAccountClick(e, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleAccountClick = (e, proper = true) => {
|
handleAccountClick = (e) => {
|
||||||
if (e && (e.button !== 0 || e.ctrlKey || e.metaKey)) {
|
if (this.context.router && e.button === 0 && !(e.ctrlKey || e.metaKey)) {
|
||||||
return;
|
const id = e.currentTarget.getAttribute('data-id');
|
||||||
}
|
|
||||||
|
|
||||||
if (e) {
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
this.context.router.history.push(`/accounts/${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._openProfile(proper);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handleQuoteClick = () => {
|
handleQuoteClick = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user