mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-18 04:38:51 +00:00
nip27: support note1 entities for now, but treat them like nevent.
This commit is contained in:
4
nip27.ts
4
nip27.ts
@@ -96,8 +96,10 @@ export function* parse(content: string | NostrEvent): Iterable<Block> {
|
||||
case 'npub':
|
||||
pointer = { pubkey: data } as ProfilePointer
|
||||
break
|
||||
case 'nsec':
|
||||
case 'note':
|
||||
pointer = { id: data } as EventPointer
|
||||
break
|
||||
case 'nsec':
|
||||
// ignore this, treat it as not a valid uri
|
||||
index = end + 1
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user