aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorSam Samskies <[email protected]>2024-08-20 08:31:12 -0500
committerSam Samskies <[email protected]>2024-08-20 08:31:12 -0500
commit766864b4ce9622d878bbef328e34170aad5eee4d (patch)
treecc715c34cbf3d13842c00b3b0e43d52ce18ecd69 /routes
parent00f0cda6a4c1ace9eea435e0bcc40a6004d70fdf (diff)
downloadcoinos-server-766864b4ce9622d878bbef328e34170aad5eee4d.tar.gz
coinos-server-766864b4ce9622d878bbef328e34170aad5eee4d.zip
set nostrPubkey to coinos pubkey
https://github.com/nostr-protocol/nips/blob/master/57.md#appendix-c-lnurl-server-configuration
Diffstat (limited to 'routes')
-rw-r--r--routes/lnurl.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index 03dcc19a..462127ac 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -9,6 +9,7 @@ import { bech32 } from "bech32";
import { fields, pick } from "$lib/utils";
import { types } from "$lib/payments";
import crypto from "crypto";
+import { COINOS_PUBKEY } from "$lib/nostr";
import config from "$config";
let { admin } = config;
@@ -54,7 +55,7 @@ export default {
res,
) {
try {
- let { id: uid, pubkey: nostrPubkey } = await getUser(username);
+ let { id: uid } = await getUser(username);
let metadata = JSON.stringify([
["text/plain", `Paying ${username}@${host}`],
@@ -69,7 +70,7 @@ export default {
minSendable,
maxSendable,
metadata,
- nostrPubkey,
+ nostrPubkey: COINOS_PUBKEY,
callback: `${URL}/api/lnurl/${id}`,
tag: "payRequest",
});