Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Make default search language 'all languages' (#5731)

authored by

Paul Frazee and committed by
GitHub
e53b9729 157011ef

+2 -5
+2 -5
src/view/screens/Search/Search.tsx
··· 436 436 } 437 437 438 438 function useQueryManager({initialQuery}: {initialQuery: string}) { 439 - const {contentLanguages} = useLanguagePrefs() 440 439 const {query, params: initialParams} = React.useMemo(() => { 441 440 return parseSearchQuery(initialQuery || '') 442 441 }, [initialQuery]) 443 442 const prevInitialQuery = React.useRef(initialQuery) 444 - const [lang, setLang] = React.useState( 445 - initialParams.lang || contentLanguages[0], 446 - ) 443 + const [lang, setLang] = React.useState(initialParams.lang || '') 447 444 448 445 if (initialQuery !== prevInitialQuery.current) { 449 446 // handle new queryParam change (from manual search entry) 450 447 prevInitialQuery.current = initialQuery 451 - setLang(initialParams.lang || contentLanguages[0]) 448 + setLang(initialParams.lang || '') 452 449 } 453 450 454 451 const params = React.useMemo(