aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/parse.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts
index 48541728..06adfd7e 100644
--- a/src/lib/parse.ts
+++ b/src/lib/parse.ts
@@ -48,7 +48,7 @@ export default async (s, host, cookies) => {
}
const { validate } = await loadValidate();
- if (validate(t) || isLiquid(t)) {
+ if (validate(t) || isLiquid(t) || t.startsWith("bcrt1")) {
let r = `/send/bitcoin/${t}`;
if (amount) r += `/${Math.round(amount * sats)}`;
redirect(307, r);
@@ -123,10 +123,4 @@ export default async (s, host, cookies) => {
} catch {}
if (fund) redirect(307, `/send/fund/${t}`);
-
- try {
- invoice ||= await get(`/invoice/${t}`);
- } catch {}
-
- if (invoice) redirect(307, `/invoice/${invoice.id}`);
};