Merge branch 'self-label' into 'main'

Fix Bluesky's selfLabel name

See merge request soapbox-pub/ditto!602
This commit is contained in:
Alex Gleason 2024-12-06 20:52:13 +00:00
commit dbfd1a9d35

View file

@ -292,7 +292,7 @@ function assertAuthenticated(c: AppContext, author: NostrEvent): void {
!c.get('signer') && author.tags.some(([name, value, ns]) => !c.get('signer') && author.tags.some(([name, value, ns]) =>
name === 'l' && name === 'l' &&
value === '!no-unauthenticated' && value === '!no-unauthenticated' &&
ns === 'com.atproto.label.defs#selfLabels' ns === 'com.atproto.label.defs#selfLabel'
) )
) { ) {
throw new HTTPException(401, { message: 'Sign-in required.' }); throw new HTTPException(401, { message: 'Sign-in required.' });