nip27: support note1 entities for now, but treat them like nevent.

This commit is contained in:
fiatjaf
2025-12-17 17:48:33 -03:00
parent 0235b490fa
commit 6ebe59f123

View File

@@ -96,8 +96,10 @@ export function* parse(content: string | NostrEvent): Iterable<Block> {
case 'npub': case 'npub':
pointer = { pubkey: data } as ProfilePointer pointer = { pubkey: data } as ProfilePointer
break break
case 'nsec':
case 'note': case 'note':
pointer = { id: data } as EventPointer
break
case 'nsec':
// ignore this, treat it as not a valid uri // ignore this, treat it as not a valid uri
index = end + 1 index = end + 1
continue continue