diff --git a/src/components/account.tsx b/src/components/account.tsx index 9536ef6edc..27823c0f7f 100644 --- a/src/components/account.tsx +++ b/src/components/account.tsx @@ -179,6 +179,11 @@ const Account = ({ if (withDate) timestamp = account.created_at; const LinkEl: any = withLinkToProfile ? Link : 'div'; + const linkProps = withLinkToProfile ? { + to: `/@${account.acct}`, + title: account.acct, + onClick: (event: React.MouseEvent) => event.stopPropagation(), + } : {}; return (
@@ -188,12 +193,7 @@ const Account = ({ condition={showProfileHoverCard} wrapper={(children) => {children}} > - event.stopPropagation()} - > + {emoji && ( {children}} > - event.stopPropagation()} - > +