From 32be19d6f1e3dd6247b308cf6f7a93d8508c38f5 Mon Sep 17 00:00:00 2001 From: YoheiZuho Date: Sun, 1 May 2022 19:37:47 +0900 Subject: [PATCH] fix if click name in QT can't show post owner's profile(8) --- app/javascript/mastodon/components/status.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index 3125e75a4..e0992176d 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -186,12 +186,11 @@ class Status extends ImmutablePureComponent { } 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); + if (this.context.router && e.button === 0 && !(e.ctrlKey || e.metaKey)) { + const id = e.currentTarget.getAttribute('data-id'); + e.preventDefault(); + this._openProfile(proper); + } } handleQuoteClick = () => {