Fix detection of !no-unauthenticated (#3279)
This commit is contained in:
@@ -56,7 +56,8 @@ export function ScreenHider({
|
|||||||
|
|
||||||
const isNoPwi = !!modui.blurs.find(
|
const isNoPwi = !!modui.blurs.find(
|
||||||
cause =>
|
cause =>
|
||||||
cause.type === 'label' && cause.labelDef.id === '!no-unauthenticated',
|
cause.type === 'label' &&
|
||||||
|
cause.labelDef.identifier === '!no-unauthenticated',
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
<CenteredView
|
<CenteredView
|
||||||
|
|||||||
@@ -108,7 +108,8 @@ export function PostThread({
|
|||||||
?.ui('contentList')
|
?.ui('contentList')
|
||||||
.blurs.find(
|
.blurs.find(
|
||||||
cause =>
|
cause =>
|
||||||
cause.type === 'label' && cause.labelDef.id === '!no-unauthenticated',
|
cause.type === 'label' &&
|
||||||
|
cause.labelDef.identifier === '!no-unauthenticated',
|
||||||
)
|
)
|
||||||
}, [rootPost, moderationOpts])
|
}, [rootPost, moderationOpts])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user