diff --git a/nip27.ts b/nip27.ts index ed07825..562415d 100644 --- a/nip27.ts +++ b/nip27.ts @@ -96,8 +96,10 @@ export function* parse(content: string | NostrEvent): Iterable { 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