Skip to content

Commit 6ebe59f

Browse files
committed
nip27: support note1 entities for now, but treat them like nevent.
1 parent 0235b49 commit 6ebe59f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nip27.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ export function* parse(content: string | NostrEvent): Iterable<Block> {
9696
case 'npub':
9797
pointer = { pubkey: data } as ProfilePointer
9898
break
99-
case 'nsec':
10099
case 'note':
100+
pointer = { id: data } as EventPointer
101+
break
102+
case 'nsec':
101103
// ignore this, treat it as not a valid uri
102104
index = end + 1
103105
continue

0 commit comments

Comments
 (0)