diff --git a/src/timelines/TootList.tsx b/src/timelines/TootList.tsx index 7c712b6..6145b75 100644 --- a/src/timelines/TootList.tsx +++ b/src/timelines/TootList.tsx @@ -106,9 +106,9 @@ const TootList: Component<{ const target = actionableElement as HTMLAnchorElement; - const acct = - encodeURIComponent(target.dataset.client || - `@${new URL(target.href).origin}`); + const acct = encodeURIComponent( + target.dataset.client || `@${new URL(target.href).origin}`, + ); navigate(`/${acct}/profile/${target.dataset.acctId}`); @@ -116,6 +116,11 @@ const TootList: Component<{ } else { console.warn("unknown action", actionableElement.dataset.rel); } + } else if ( + event.target.parentElement && + event.target.parentElement.tagName === "A" + ) { + return; } // else if (!actionableElement || !checkIsExpended(status) || )