From dd0d8d8b777c98b76fba1aefc9dcceb2758d17d8 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 12 Jan 2026 20:24:12 +0200 Subject: [PATCH] Fix cashtag search query to use # prefix Cashtags need to be searched as "#$BTC" rather than just "$BTC" to work with the search API. Co-Authored-By: Claude Opus 4.5 --- src/screens/Hashtag.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/screens/Hashtag.tsx b/src/screens/Hashtag.tsx index 56d994ad88..226067ec6b 100644 --- a/src/screens/Hashtag.tsx +++ b/src/screens/Hashtag.tsx @@ -181,10 +181,14 @@ function HashtagScreenTab({ const {hasSession} = useSession() const trackPostView = usePostViewTracking('Hashtag') + const isCashtag = fullTag.startsWith('$') + const queryParam = React.useMemo(() => { - if (!author) return fullTag - return `${fullTag} from:${author}` - }, [fullTag, author]) + // Cashtags need # prefix for search: "#$BTC" or "#$BTC from:author" + const searchTag = isCashtag ? `#${fullTag}` : fullTag + if (!author) return searchTag + return `${searchTag} from:${author}` + }, [fullTag, author, isCashtag]) const { data,