about summary refs log tree commit diff
path: root/src/view
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-05-29 21:34:47 -0700
committerGitHub <noreply@github.com>2024-05-30 05:34:47 +0100
commite48f8e15eb24320b74be579eb414c36fed24149b (patch)
tree989ff5a0ee49b4cdad27da03e5183ba96ed63596 /src/view
parent5fe1e171f0c9e4c9fa3f1b55bf231bdfd3662126 (diff)
downloadvoidsky-e48f8e15eb24320b74be579eb414c36fed24149b.tar.zst
Interpret 'hide' setting as ALWAYS hiding from thread replies (#4263)
Diffstat (limited to 'src/view')
-rw-r--r--src/view/com/post-thread/PostThread.tsx4
-rw-r--r--src/view/com/post-thread/PostThreadItem.tsx3
2 files changed, 4 insertions, 3 deletions
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',