From 6ebe59f1239176598140ceae6b3277edca77ecc4 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 17 Dec 2025 17:48:33 -0300 Subject: [PATCH] nip27: support note1 entities for now, but treat them like nevent. --- nip27.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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