diff options
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/lnurl.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index ea99d488..daab5e0b 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -49,7 +49,7 @@ export default { async lnurlp( { params: { username }, - query: { minSendable = 1000, maxSendable = 100000000000 }, + query: { minSendable = 1000, maxSendable = 100000000000 }, }, res, ) { @@ -90,8 +90,8 @@ export default { username = username.replace(/\s/g, "").toLowerCase(); let metadata = JSON.stringify([ - ["text/plain", `Paying ${username}@${host}`], ["text/identifier", `${username}@${host}`], + ["text/plain", `Paying ${username}@${host}`], ]); if (nostr) { @@ -108,9 +108,9 @@ export default { let { text: pr } = await generate({ invoice: { amount: Math.round(amount / 1000), + memo: metadata, type: types.lightning, }, - memo: metadata, user, }); |
