From e48f8e15eb24320b74be579eb414c36fed24149b Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Wed, 29 May 2024 21:34:47 -0700
Subject: Interpret 'hide' setting as ALWAYS hiding from thread replies (#4263)

---
 src/components/moderation/PostHider.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/components/moderation/PostHider.tsx')

diff --git a/src/components/moderation/PostHider.tsx b/src/components/moderation/PostHider.tsx
index 177104f93..8a6474297 100644
--- a/src/components/moderation/PostHider.tsx
+++ b/src/components/moderation/PostHider.tsx
@@ -23,6 +23,7 @@ interface Props extends ComponentProps<typeof Link> {
   iconStyles: StyleProp<ViewStyle>
   modui: ModerationUI
   profile: AppBskyActorDefs.ProfileViewBasic
+  interpretFilterAsBlur?: boolean
 }
 
 export function PostHider({
@@ -35,6 +36,7 @@ export function PostHider({
   iconSize,
   iconStyles,
   profile,
+  interpretFilterAsBlur,
   ...props
 }: Props) {
   const queryClient = useQueryClient()
@@ -42,7 +44,8 @@ export function PostHider({
   const {_} = useLingui()
   const [override, setOverride] = React.useState(false)
   const control = useModerationDetailsDialogControl()
-  const blur = modui.blurs[0]
+  const blur =
+    modui.blurs[0] || (interpretFilterAsBlur ? modui.filters[0] : undefined)
   const desc = useModerationCauseDescription(blur)
 
   const onBeforePress = React.useCallback(() => {
-- 
cgit 1.4.1

