about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThread.tsx
diff options
context:
space:
mode:
authorMinseo Lee <itoupluk427@gmail.com>2024-03-19 10:52:29 +0900
committerMinseo Lee <itoupluk427@gmail.com>2024-03-19 10:52:29 +0900
commitad43d594c9f63fc85e6927d23cd3f3f21406b002 (patch)
tree8a20f9f9051ff066bd54c5bc126ccc548e2cb16c /src/view/com/post-thread/PostThread.tsx
parent73dae9f7b5c169aa303e9ef9487040e850998edf (diff)
parent3abf302b0b189c50acf11489bf60bdaeb187b722 (diff)
downloadvoidsky-ad43d594c9f63fc85e6927d23cd3f3f21406b002.tar.zst
Merge remote-tracking branch 'upstream/main' into patch-3
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r--src/view/com/post-thread/PostThread.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index a7ee42a94..bac7018c3 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -106,11 +106,12 @@ export function PostThread({
         ? moderatePost(rootPost, moderationOpts)
         : undefined
 
-    const cause = mod?.content.cause
-
-    return cause
-      ? cause.type === 'label' && cause.labelDef.id === '!no-unauthenticated'
-      : false
+    return !!mod
+      ?.ui('contentList')
+      .blurs.find(
+        cause =>
+          cause.type === 'label' && cause.labelDef.id === '!no-unauthenticated',
+      )
   }, [rootPost, moderationOpts])
 
   useSetTitle(