From 9bb16ac0e6ba849d89dbc10204692b8afbeac706 Mon Sep 17 00:00:00 2001 From: YoheiZuho Date: Thu, 20 May 2021 15:51:00 +0200 Subject: [PATCH] fix account page --- .../mastodon/features/status/components/detailed_status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/status/components/detailed_status.js b/app/javascript/mastodon/features/status/components/detailed_status.js index 9d16a9aa9..14bd6a3bf 100644 --- a/app/javascript/mastodon/features/status/components/detailed_status.js +++ b/app/javascript/mastodon/features/status/components/detailed_status.js @@ -87,7 +87,7 @@ class DetailedStatus extends ImmutablePureComponent { if (e.button === 0 && !(e.ctrlKey || e.metaKey) && this.context.router) { const id = e.currentTarget.getAttribute('data-id'); e.preventDefault(); - this.context.router.history.push(`/accounts/${id}`); + this.context.router.history.push(`/accounts/${this.props.status.getIn(['account', 'id'])}`); } e.stopPropagation();