From 1ccb8a2d099e85086e77242c84edabef336c22f0 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Mon, 26 Jun 2017 15:41:09 -0700 Subject: [PATCH] Disable account linking on collapsed toots too --- app/javascript/mastodon/components/status.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js index cbbd831e72..0077a9191a 100644 --- a/app/javascript/mastodon/components/status.js +++ b/app/javascript/mastodon/components/status.js @@ -169,7 +169,8 @@ class StatusUnextended extends ImmutablePureComponent { if (e.button === 0) { const id = Number(e.currentTarget.getAttribute('data-id')); e.preventDefault(); - this.context.router.history.push(`/accounts/${id}`); + if (this.state.isCollapsed) this.handleCollapsedClick(); + else this.context.router.history.push(`/accounts/${id}`); } }