From f884ffabc9afab2d6051379062434fc9e7f61176 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 30 Jul 2026 08:51:45 -0700 Subject: bolt12 zaps: accept offers in send flow, show/publish user offer - parse lno= from BIP-321 bitcoin: URIs; send page parses offers for preview now that /parse handles them - settings/nostr shows the user's standing lno1 offer with copy/QR and a button to publish it as a kind 10058 offer list for NIP-177 zaps - new locale strings translated Co-Authored-By: Claude Fable 5 --- src/lib/parse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/parse.ts') diff --git a/src/lib/parse.ts b/src/lib/parse.ts index b5b953c2..f41fe78f 100644 --- a/src/lib/parse.ts +++ b/src/lib/parse.ts @@ -14,10 +14,10 @@ export default async (s, host, cookies) => { if (t.startsWith("http")) redirect(307, t); if (t.startsWith(host)) redirect(307, `http://${t}`); - if (t.includes("lightning=")) { + if (t.includes("lightning=") || t.includes("lno=")) { const url = new URL(t); const params = new URLSearchParams(url.search); - t = params.get("lightning"); + t = params.get("lightning") || params.get("lno"); } if (t.startsWith("lightning:")) t = t.replace("lightning:", ""); -- cgit v1.2.3