Fix Bluesky's selfLabel name

This commit is contained in:
Alex Gleason 2024-12-06 14:50:16 -06:00
parent d0f53f5601
commit a7bfc665c3
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

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.' });