Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow all encoding for hashtags in URL (#3131)

authored by

Hailey and committed by
GitHub
1cf49517 8b0e575f

+6 -6
+2 -2
src/components/TagMenu/index.tsx
··· 98 98 99 99 control.close(() => { 100 100 navigation.push('Hashtag', { 101 - tag: tag.replaceAll('#', '%23'), 101 + tag: encodeURIComponent(tag), 102 102 }) 103 103 }) 104 104 ··· 153 153 154 154 control.close(() => { 155 155 navigation.push('Hashtag', { 156 - tag: tag.replaceAll('#', '%23'), 156 + tag: encodeURIComponent(tag), 157 157 author: authorHandle, 158 158 }) 159 159 })
+2 -2
src/components/TagMenu/index.web.tsx
··· 66 66 label: _(msg`See ${truncatedTag} posts`), 67 67 onPress() { 68 68 navigation.push('Hashtag', { 69 - tag: tag.replaceAll('#', '%23'), 69 + tag: encodeURIComponent(tag), 70 70 }) 71 71 }, 72 72 testID: 'tagMenuSearch', ··· 83 83 label: _(msg`See ${truncatedTag} posts by user`), 84 84 onPress() { 85 85 navigation.push('Hashtag', { 86 - tag: tag.replaceAll('#', '%23'), 86 + tag: encodeURIComponent(tag), 87 87 author: authorHandle, 88 88 }) 89 89 },
+2 -2
src/screens/Hashtag.tsx
··· 42 42 const [isPTR, setIsPTR] = React.useState(false) 43 43 44 44 const fullTag = React.useMemo(() => { 45 - return `#${tag.replaceAll('%23', '#')}` 45 + return `#${decodeURIComponent(tag)}` 46 46 }, [tag]) 47 47 48 48 const queryParam = React.useMemo(() => { ··· 83 83 84 84 const onShare = React.useCallback(() => { 85 85 const url = new URL('https://bsky.app') 86 - url.pathname = `/hashtag/${tag}` 86 + url.pathname = `/hashtag/${decodeURIComponent(tag)}` 87 87 if (author) { 88 88 url.searchParams.set('author', author) 89 89 }