aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-24 18:13:48 -0800
committerAdam Soltys <[email protected]>2025-01-24 18:13:53 -0800
commit5b08781d66a002453174264438e2980ace7e6fcc (patch)
treeca165a14dd588a727a575fc6144ad6bbfd03a590
parentc7bfb41da3c6c4505ba075670a11921ba1258cea (diff)
downloadcoinos-server-5b08781d66a002453174264438e2980ace7e6fcc.tar.gz
coinos-server-5b08781d66a002453174264438e2980ace7e6fcc.zip
use lnurl comment if provided
-rw-r--r--routes/lnurl.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts
index 8fd7f1d6..05d369fc 100644
--- a/routes/lnurl.ts
+++ b/routes/lnurl.ts
@@ -94,7 +94,7 @@ export default {
async lnurl(req, res) {
const {
params: { id },
- query: { amount, comment, nostr, lnurl },
+ query: { amount, comment, nostr },
} = req;
try {
const uid = await g(`lnurl:${id}`);
@@ -103,7 +103,7 @@ export default {
let { username } = user;
username = username.replace(/\s/g, "").toLowerCase();
- const memo = `Paying ${username}@${host}` || comment;
+ const memo = comment ?? `Paying ${username}@${host}`;
let metadata = JSON.stringify([
["text/plain", memo],
["text/identifier", `${username}@${host}`],