From ee257dc307d140c2ad69b8bd58b8b8cdf8ef423e Mon Sep 17 00:00:00 2001 From: Echo Date: Fri, 14 Nov 2025 15:11:41 +0100 Subject: [PATCH] [Glitch] Fix error with remote tags including percent signs Port c5eca8ffb26f5ecbdec212e5e1c352ae9dd8e28d to glitch-soc Signed-off-by: Claire --- .../glitch/components/status/handled_link.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/javascript/flavours/glitch/components/status/handled_link.tsx b/app/javascript/flavours/glitch/components/status/handled_link.tsx index cd1fe0b74b..3541b09cbf 100644 --- a/app/javascript/flavours/glitch/components/status/handled_link.tsx +++ b/app/javascript/flavours/glitch/components/status/handled_link.tsx @@ -133,12 +133,14 @@ export const HandledLink: FC> = ({ // Handle hashtags if ( - text.startsWith('#') || - prevText?.endsWith('#') || - text.startsWith('#') || - prevText?.endsWith('#') + (text.startsWith('#') || + prevText?.endsWith('#') || + text.startsWith('#') || + prevText?.endsWith('#')) && + !text.includes('%') ) { const hashtag = text.slice(1).trim(); + return ( > = ({ return (