From 5b08781d66a002453174264438e2980ace7e6fcc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 24 Jan 2025 18:13:48 -0800 Subject: use lnurl comment if provided --- routes/lnurl.ts | 4 ++-- 1 file 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}`], -- cgit v1.2.3