From f24825d4bb9ee4f9f557e64afc1fccf9473632c3 Mon Sep 17 00:00:00 2001 From: YoheiZuho Date: Sun, 1 May 2022 19:31:59 +0900 Subject: [PATCH] fix if click name in QT can't show post owner's profile(7) --- app/javascript/mastodon/components/status.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 066988d2c..3125e75a4 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -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); }