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