diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/lnurl.ts | 6 | ||||
| -rw-r--r-- | routes/users.ts | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts index 239da2bd..729cca58 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -1,7 +1,7 @@ import { db, g, s } from "$lib/db"; import { generate } from "$lib/invoices"; import { err, warn } from "$lib/logging"; -import { serverPubkey } from "$lib/nostr"; +import { serverPubkey2 } from "$lib/nostr"; import { SATS, bail, fail, getInvoice, getUser } from "$lib/utils"; import { bech32 } from "bech32"; import got from "got"; @@ -82,7 +82,7 @@ export default { minSendable, maxSendable, metadata, - nostrPubkey: serverPubkey, + nostrPubkey: serverPubkey2, commentAllowed: 512, callback: `${URL}/api/lnurl/${id}`, tag: "payRequest", @@ -220,7 +220,7 @@ export default { minSendable: invoice.amount ? total : 1000, maxSendable: invoice.amount ? total : 10 * 1000 * SATS, metadata, - nostrPubkey: serverPubkey, + nostrPubkey: serverPubkey2, commentAllowed: 512, callback: `${URL}/api/lnurl/${id}`, tag: "payRequest", diff --git a/routes/users.ts b/routes/users.ts index 94deeed7..7b9a486b 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -5,7 +5,7 @@ import { requirePin } from "$lib/auth"; import { db, g, ga, s } from "$lib/db"; import { err, l, warn } from "$lib/logging"; import { mail, templates } from "$lib/mail"; -import { getNostrUser, getProfile, serverPubkey } from "$lib/nostr"; +import { getNostrUser, getProfile, serverPubkey2 } from "$lib/nostr"; import { reconcile } from "$lib/payments"; import register from "$lib/register"; import { emit } from "$lib/sockets"; @@ -899,7 +899,7 @@ export default { }), ); - app.nwc = `nostr+walletconnect://${serverPubkey}?relay=${relay}&secret=${app.secret}&lud16=${lud16}`; + app.nwc = `nostr+walletconnect://${serverPubkey2}?relay=${relay}&secret=${app.secret}&lud16=${lud16}`; app.payments = payments.filter((p) => p); res.send(app); @@ -915,7 +915,7 @@ export default { await Promise.all( apps.map(async (a) => { if (a.secret) - a.nwc = `nostr+walletconnect://${serverPubkey}?relay=${relay}&secret=${a.secret}&lud16=${lud16}`; + a.nwc = `nostr+walletconnect://${serverPubkey2}?relay=${relay}&secret=${a.secret}&lud16=${lud16}`; const pids = await db.lRange(`${a.pubkey}:payments`, 0, -1); let payments = await Promise.all( |
