From b01d21c4d48b9b508f64a191cc94a3d41c21ef40 Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 28 Oct 2025 15:26:08 +0100 Subject: [PATCH] Hashtag fixes (#36625) --- app/javascript/mastodon/components/status/handled_link.tsx | 7 ++++++- app/models/tag.rb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/components/status/handled_link.tsx b/app/javascript/mastodon/components/status/handled_link.tsx index 59305d573..be816e985 100644 --- a/app/javascript/mastodon/components/status/handled_link.tsx +++ b/app/javascript/mastodon/components/status/handled_link.tsx @@ -26,7 +26,12 @@ export const HandledLink: FC> = ({ ...props }) => { // Handle hashtags - if (text.startsWith('#') || prevText?.endsWith('#')) { + if ( + text.startsWith('#') || + prevText?.endsWith('#') || + text.startsWith('#') || + prevText?.endsWith('#') + ) { const hashtag = text.slice(1).trim(); return (