diff options
| author | Adam Soltys <[email protected]> | 2026-02-05 16:44:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 15:34:32 -0800 |
| commit | cf1d8029efc1f9497bcef71b5c959c42794f3566 (patch) | |
| tree | b3a9658e7e426a82a545477df0414bc6b61509f2 /src/lib/parse.ts | |
| parent | ed4d86167d32503ad8813c81dda9591d1b1b8190 (diff) | |
| download | coinos-ui-cf1d8029efc1f9497bcef71b5c959c42794f3566.tar.gz coinos-ui-cf1d8029efc1f9497bcef71b5c959c42794f3566.zip | |
payment forwarding
Diffstat (limited to 'src/lib/parse.ts')
| -rw-r--r-- | src/lib/parse.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts index 8520c27a..3249b9db 100644 --- a/src/lib/parse.ts +++ b/src/lib/parse.ts @@ -72,8 +72,10 @@ export default async (s, host, cookies) => { invoice = { id: iid }; } else if (t.toLowerCase().startsWith("ln")) { try { + const aid = cookies.get("aid"); invoice = await get(`/invoice/${t}`); if (invoice.user.username === "mint") throw new Error("mint payment"); + if (aid && aid !== invoice.aid) throw new Error("cross-account"); } catch (e) { if (t.toLowerCase().startsWith("lno")) { const { offer_amount_msat: a } = await get(`/decode/${t}`); |
