aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-16 15:33:22 -0700
committerAdam Soltys <[email protected]>2024-10-16 15:33:22 -0700
commite0ea06df4572c5183c5a4fd1697ca59c2614672c (patch)
treebd42b8194aa3485964beaef5ec2f8708e506503a /routes
parent4501538630af9d6026fe5661da0386d1b5d65008 (diff)
downloadcoinos-server-e0ea06df4572c5183c5a4fd1697ca59c2614672c.tar.gz
coinos-server-e0ea06df4572c5183c5a4fd1697ca59c2614672c.zip
atomic payment reversal
Diffstat (limited to 'routes')
-rw-r--r--routes/lnurl.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts
index 59fc6ba1..fec516c1 100644
--- a/routes/lnurl.ts
+++ b/routes/lnurl.ts
@@ -69,6 +69,7 @@ export default {
maxSendable,
metadata,
nostrPubkey: serverPubkey,
+ commentAllowed: 512,
callback: `${URL}/api/lnurl/${id}`,
tag: "payRequest",
});
@@ -81,7 +82,7 @@ export default {
async lnurl(req, res) {
let {
params: { id },
- query: { amount, nostr },
+ query: { amount, comment, nostr },
} = req;
try {
let uid = await g(`lnurl:${id}`);