diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/lnurl.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts index e28bb510..20d795c0 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -37,6 +37,8 @@ const unauthInvoiceBudget = async (uid: string) => { fail("Too many payment requests for this user, try again later"); } }; +import { holderBlocked } from "$lib/names"; + // v3 payment addresses (coinos v3 / halwallet) are registered here. const NAMES_URL = process.env.NAMES_URL || "https://names.coinos.io"; @@ -135,7 +137,7 @@ export default { // registrar never queries this endpoint for those. If the registrar is // unreachable we fall through and serve the local account — a briefly // stale destination beats an unpayable address. - const v3 = await registrarLookup(name); + const v3 = (await holderBlocked(name)) ? null : await registrarLookup(name); if (v3) return res.send(v3); const user = await getUser(name); |
