Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Interpret 'hide' setting as ALWAYS hiding from thread replies (#4263)

authored by

Paul Frazee and committed by
GitHub
e48f8e15 5fe1e171

+8 -4
+4 -1
src/components/moderation/PostHider.tsx
··· 23 23 iconStyles: StyleProp<ViewStyle> 24 24 modui: ModerationUI 25 25 profile: AppBskyActorDefs.ProfileViewBasic 26 + interpretFilterAsBlur?: boolean 26 27 } 27 28 28 29 export function PostHider({ ··· 35 36 iconSize, 36 37 iconStyles, 37 38 profile, 39 + interpretFilterAsBlur, 38 40 ...props 39 41 }: Props) { 40 42 const queryClient = useQueryClient() ··· 42 44 const {_} = useLingui() 43 45 const [override, setOverride] = React.useState(false) 44 46 const control = useModerationDetailsDialogControl() 45 - const blur = modui.blurs[0] 47 + const blur = 48 + modui.blurs[0] || (interpretFilterAsBlur ? modui.filters[0] : undefined) 46 49 const desc = useModerationCauseDescription(blur) 47 50 48 51 const onBeforePress = React.useCallback(() => {
+2 -2
src/view/com/post-thread/PostThread.tsx
··· 543 543 // handle blurred items 544 544 if (node.ctx.depth > 0) { 545 545 const modui = modCache.get(node)?.ui('contentList') 546 - if (modui?.blur) { 546 + if (modui?.blur || modui?.filter) { 547 547 if (!showHiddenReplies || node.ctx.depth > 1) { 548 - if (modui.blurs[0].type === 'muted') { 548 + if ((modui.blurs[0] || modui.filters[0]).type === 'muted') { 549 549 return HiddenReplyType.Muted 550 550 } 551 551 return HiddenReplyType.Hidden
+2 -1
src/view/com/post-thread/PostThreadItem.tsx
··· 430 430 ? {marginRight: 4} 431 431 : {marginLeft: 2, marginRight: 2} 432 432 } 433 - profile={post.author}> 433 + profile={post.author} 434 + interpretFilterAsBlur> 434 435 <View 435 436 style={{ 436 437 flexDirection: 'row',