Bluesky app fork with some witchin' additions 💫

Fix some account filtering behaviors (#2290)

* Fix: don't filter ProfileCards out of certain lists

* Fix: don't filter ProfileCards and autocomplete based on mutes

authored by

Paul Frazee and committed by
GitHub
7d6b7d2f b922b838

+11 -2
+1 -1
src/state/queries/actor-autocomplete.ts
··· 112 112 } 113 113 return items.filter(profile => { 114 114 const mod = moderateProfile(profile, moderationOpts) 115 - return !mod.account.filter 115 + return !mod.account.filter && mod.account.cause?.type !== 'muted' 116 116 }) 117 117 } 118 118
+1
src/view/com/lists/ListMembers.tsx
··· 180 180 profile={(item as AppBskyGraphDefs.ListItemView).subject} 181 181 renderButton={renderMemberButton} 182 182 style={{paddingHorizontal: isMobile ? 8 : 14, paddingVertical: 4}} 183 + noModFilter 183 184 /> 184 185 ) 185 186 },
+7 -1
src/view/com/profile/ProfileCard.tsx
··· 27 27 export function ProfileCard({ 28 28 testID, 29 29 profile: profileUnshadowed, 30 + noModFilter, 30 31 noBg, 31 32 noBorder, 32 33 followers, ··· 35 36 }: { 36 37 testID?: string 37 38 profile: AppBskyActorDefs.ProfileViewBasic 39 + noModFilter?: boolean 38 40 noBg?: boolean 39 41 noBorder?: boolean 40 42 followers?: AppBskyActorDefs.ProfileView[] | undefined ··· 50 52 return null 51 53 } 52 54 const moderation = moderateProfile(profile, moderationOpts) 53 - if (moderation.account.filter) { 55 + if ( 56 + !noModFilter && 57 + moderation.account.filter && 58 + moderation.account.cause?.type !== 'muted' 59 + ) { 54 60 return null 55 61 } 56 62
+1
src/view/screens/ModerationBlockedAccounts.tsx
··· 92 92 testID={`blockedAccount-${index}`} 93 93 key={item.did} 94 94 profile={item} 95 + noModFilter 95 96 /> 96 97 ) 97 98 return (
+1
src/view/screens/ModerationMutedAccounts.tsx
··· 92 92 testID={`mutedAccount-${index}`} 93 93 key={item.did} 94 94 profile={item} 95 + noModFilter 95 96 /> 96 97 ) 97 98 return (