From 9f7075a0ce2b6ecef8d92ef318785fa8ce708688 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 22 Oct 2025 15:55:41 +0200 Subject: [PATCH] Remove unnecessary restrictions on HTML handling (#36548) --- app/javascript/mastodon/components/status/handled_link.tsx | 2 +- app/javascript/mastodon/components/status_content.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/status/handled_link.tsx b/app/javascript/mastodon/components/status/handled_link.tsx index 3c8973992..59305d573 100644 --- a/app/javascript/mastodon/components/status/handled_link.tsx +++ b/app/javascript/mastodon/components/status/handled_link.tsx @@ -38,7 +38,7 @@ export const HandledLink: FC> = ({ {children} ); - } else if ((text.startsWith('@') || prevText?.endsWith('@')) && mention) { + } else if (mention) { // Handle mentions return ( ); - } else if (element instanceof HTMLParagraphElement && element.classList.contains('quote-inline')) { + } else if (element.classList.contains('quote-inline')) { return null; } return undefined;