From 1c184f2af7c6a11c779b64b936f45f3d4902c199 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 22 Apr 2024 22:32:32 -0700 Subject: increase max file size --- routes/lnurl.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'routes') diff --git a/routes/lnurl.js b/routes/lnurl.js index 2a8f5564..ea99d488 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -46,7 +46,13 @@ export default { } }, - async lnurlp({ params: { username } }, res) { + async lnurlp( + { + params: { username }, + query: { minSendable = 1000, maxSendable = 100000000000 }, + }, + res, + ) { try { let { id: uid, pubkey: nostrPubkey } = await getUser(username); @@ -60,8 +66,8 @@ export default { res.send({ allowsNostr: true, - minSendable: 1000, - maxSendable: 100000000000, + minSendable, + maxSendable, metadata, nostrPubkey, callback: `${URL}/api/lnurl/${id}`, -- cgit v1.2.3