mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-18 20:58:50 +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':
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user