Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Hide bio and social proof for blocked users (#4504)

authored by

dan and committed by
GitHub
498e46ae 7faa1d91

+6 -1
+6 -1
src/screens/Profile/Header/ProfileHeaderStandard.tsx
··· 75 75 const [_queueBlock, queueUnblock] = useProfileBlockMutationQueue(profile) 76 76 const unblockPromptControl = Prompt.usePromptControl() 77 77 const requireAuth = useRequireAuth() 78 + const isBlockedUser = 79 + profile.viewer?.blocking || 80 + profile.viewer?.blockedBy || 81 + profile.viewer?.blockingByList 78 82 79 83 const onPressEditProfile = React.useCallback(() => { 80 84 track('ProfileHeader:EditProfileButtonClicked') ··· 257 261 <ProfileHeaderDisplayName profile={profile} moderation={moderation} /> 258 262 <ProfileHeaderHandle profile={profile} /> 259 263 </View> 260 - {!isPlaceholderProfile && ( 264 + {!isPlaceholderProfile && !isBlockedUser && ( 261 265 <> 262 266 <ProfileHeaderMetrics profile={profile} /> 263 267 {descriptionRT && !moderation.ui('profileView').blur ? ( ··· 274 278 ) : undefined} 275 279 276 280 {!isMe && 281 + !isBlockedUser && 277 282 shouldShowKnownFollowers(profile.viewer?.knownFollowers) && ( 278 283 <View style={[a.flex_row, a.align_center, a.gap_sm, a.pt_md]}> 279 284 <KnownFollowers