about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-03-19 14:43:00 -0700
committerGitHub <noreply@github.com>2024-03-19 14:43:00 -0700
commitbdf77f8548dc62571ecb6c70b320b866360fbec1 (patch)
tree5fd94ef71bac3667458c147091b0aa14a8e692dc
parent43be4f7d3d39894c5145ab1d75fe695c96c98c13 (diff)
downloadvoidsky-bdf77f8548dc62571ecb6c70b320b866360fbec1.tar.zst
Fix detection of !no-unauthenticated (#3279)
-rw-r--r--src/components/moderation/ScreenHider.tsx3
-rw-r--r--src/view/com/post-thread/PostThread.tsx3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/components/moderation/ScreenHider.tsx b/src/components/moderation/ScreenHider.tsx
index 71ca85a92..4e3a9680f 100644
--- a/src/components/moderation/ScreenHider.tsx
+++ b/src/components/moderation/ScreenHider.tsx
@@ -56,7 +56,8 @@ export function ScreenHider({
 
   const isNoPwi = !!modui.blurs.find(
     cause =>
-      cause.type === 'label' && cause.labelDef.id === '!no-unauthenticated',
+      cause.type === 'label' &&
+      cause.labelDef.identifier === '!no-unauthenticated',
   )
   return (
     <CenteredView
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index 8042e7bd5..ba74ba6d8 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -108,7 +108,8 @@ export function PostThread({
       ?.ui('contentList')
       .blurs.find(
         cause =>
-          cause.type === 'label' && cause.labelDef.id === '!no-unauthenticated',
+          cause.type === 'label' &&
+          cause.labelDef.identifier === '!no-unauthenticated',
       )
   }, [rootPost, moderationOpts])