diff options
| author | Adam Soltys <[email protected]> | 2026-07-30 08:51:45 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-07-30 08:51:45 -0700 |
| commit | f884ffabc9afab2d6051379062434fc9e7f61176 (patch) | |
| tree | 5bcfd4ecc7c6cec85e3cd269aecfb4227f406af0 /src/lib/parse.ts | |
| parent | 2f0e6d052efbca7f695dda942ab7da6221da3aa9 (diff) | |
| download | coinos-ui-f884ffabc9afab2d6051379062434fc9e7f61176.tar.gz coinos-ui-f884ffabc9afab2d6051379062434fc9e7f61176.zip | |
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 <[email protected]>
Diffstat (limited to 'src/lib/parse.ts')
| -rw-r--r-- | src/lib/parse.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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:", ""); |
