about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/moderation/PostHider.tsx5
-rw-r--r--src/view/com/post-thread/PostThread.tsx4
-rw-r--r--src/view/com/post-thread/PostThreadItem.tsx3
3 files changed, 8 insertions, 4 deletions
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(() => {
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index 1212f992d..64ff9cb0f 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -543,9 +543,9 @@ function* flattenThreadReplies(
     // handle blurred items
     if (node.ctx.depth > 0) {
       const modui = modCache.get(node)?.ui('contentList')
-      if (modui?.blur) {
+      if (modui?.blur || modui?.filter) {
         if (!showHiddenReplies || node.ctx.depth > 1) {
-          if (modui.blurs[0].type === 'muted') {
+          if ((modui.blurs[0] || modui.filters[0]).type === 'muted') {
             return HiddenReplyType.Muted
           }
           return HiddenReplyType.Hidden
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index 5451a67dd..9d2985f15 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -430,7 +430,8 @@ let PostThreadItemLoaded = ({
                 ? {marginRight: 4}
                 : {marginLeft: 2, marginRight: 2}
             }
-            profile={post.author}>
+            profile={post.author}
+            interpretFilterAsBlur>
             <View
               style={{
                 flexDirection: 'row',