From c76f043f25700808b09e252b0d55e83bf5a1cbac Mon Sep 17 00:00:00 2001 From: YoheiZuho Date: Fri, 14 Jul 2023 17:15:15 +0000 Subject: [PATCH] fix: redirect @null --- .../mastodon/features/status/components/detailed_status.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/status/components/detailed_status.jsx b/app/javascript/mastodon/features/status/components/detailed_status.jsx index 5e76d1bec..5bb899595 100644 --- a/app/javascript/mastodon/features/status/components/detailed_status.jsx +++ b/app/javascript/mastodon/features/status/components/detailed_status.jsx @@ -66,9 +66,8 @@ class DetailedStatus extends ImmutablePureComponent { handleAccountClick = (e) => { if (e.button === 0 && !(e.ctrlKey || e.metaKey) && this.context.router) { - const acct = e.currentTarget.getAttribute('data-acct'); e.preventDefault(); - this.context.router.history.push(`/@${acct}`); + this.context.router.history.push(`/@${this.props.status.getIn(['account', 'acct'])}`); } e.stopPropagation();