Skip to content

Commit

Permalink
Fix detection of !no-unauthenticated (bluesky-social#3279)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee authored Mar 19, 2024
1 parent 43be4f7 commit bdf77f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/moderation/ScreenHider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/view/com/post-thread/PostThread.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit bdf77f8

Please sign in to comment.