From 09e886300b5a528150c8141164504aa244a1c070 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 10 Aug 2025 19:11:56 -0700 Subject: make lnurl route public --- src/routes/(app)/ln/[lnurl]/+page.server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/(app)/ln/[lnurl]/+page.server.ts b/src/routes/(app)/ln/[lnurl]/+page.server.ts index e6d62430..2df64e93 100644 --- a/src/routes/(app)/ln/[lnurl]/+page.server.ts +++ b/src/routes/(app)/ln/[lnurl]/+page.server.ts @@ -7,7 +7,6 @@ const { decode, fromWords } = bech32; export async function load({ params, parent }) { const { user } = await parent(); - if (!user) redirect(307, "/register"); const rates = await getRates(); let data; @@ -53,7 +52,7 @@ export async function load({ params, parent }) { if (!["payRequest", "withdrawRequest"].includes(data.tag)) error(500, "We only support LNURLp and LNURLw at this time"); - data.rate = rates[user.currency]; + data.rate = rates[user?.currency || "USD"]; return data; } -- cgit v1.2.3