Bluesky app fork with some witchin' additions 💫

[APP-1846] Remove trending post counts until we can improve accuracy (#9867)

authored by

Spence Pope and committed by
GitHub
82fea6da 2f156bb9

+2 -12
+2 -12
src/screens/Search/modules/ExploreTrendingTopics.tsx
··· 1 1 import {useMemo} from 'react' 2 2 import {Pressable, View} from 'react-native' 3 3 import {type AppBskyUnspeccedDefs, moderateProfile} from '@atproto/api' 4 - import {msg, plural, Trans} from '@lingui/macro' 4 + import {msg, Trans} from '@lingui/macro' 5 5 import {useLingui} from '@lingui/react' 6 6 7 7 import {useModerationOpts} from '#/state/preferences/moderation-opts' ··· 9 9 import {useGetTrendsQuery} from '#/state/queries/trending/useGetTrendsQuery' 10 10 import {useTrendingConfig} from '#/state/service-config' 11 11 import {LoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' 12 - import {formatCount} from '#/view/com/util/numeric/format' 13 12 import {atoms as a, useGutters, useTheme, type ViewStyleProp, web} from '#/alf' 14 13 import {AvatarStack} from '#/components/AvatarStack' 15 14 import {type Props as SVGIconProps} from '#/components/icons/common' ··· 65 64 onPress?: () => void 66 65 }) { 67 66 const t = useTheme() 68 - const {_, i18n} = useLingui() 67 + const {_} = useLingui() 69 68 const gutters = useGutters([0, 'base']) 70 69 71 70 const category = useCategoryDisplayName(trend?.category || 'other') ··· 74 73 (1000 * 60 * 60), 75 74 ) 76 75 const badgeType = trend.status === 'hot' ? 'hot' : age < 2 ? 'new' : age 77 - const postCount = trend.postCount 78 - ? _( 79 - plural(trend.postCount, { 80 - other: `${formatCount(i18n, trend.postCount)} posts`, 81 - }), 82 - ) 83 - : null 84 76 85 77 const actors = useModerateTrendingActors(trend.actors) 86 78 ··· 132 124 web(a.leading_snug), 133 125 ]} 134 126 numberOfLines={1}> 135 - {postCount} 136 - {postCount && category && <> &middot; </>} 137 127 {category} 138 128 </Text> 139 129 </View>