aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-05-03 05:48:06 +0000
committerAdam Soltys <[email protected]>2024-05-03 05:48:06 +0000
commit62873c946bf8b7aa14634cf6d1105e5d13cd832e (patch)
tree98e82d18c8dd46fcb0a227907ad4320f9f0dff0e
parent3498d1b6f5b1485fc6b823aae1f41a3d718564c6 (diff)
downloadcoinos-server-62873c946bf8b7aa14634cf6d1105e5d13cd832e.tar.gz
coinos-server-62873c946bf8b7aa14634cf6d1105e5d13cd832e.zip
fix metadata order
-rw-r--r--routes/lnurl.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js
index daab5e0b..c092d6fe 100644
--- a/routes/lnurl.js
+++ b/routes/lnurl.js
@@ -89,9 +89,10 @@ export default {
let { username } = user;
username = username.replace(/\s/g, "").toLowerCase();
+ let memo = `Paying ${username}@${host}`;
let metadata = JSON.stringify([
- ["text/identifier", `${username}@${host}`],
- ["text/plain", `Paying ${username}@${host}`],
+ ["text/plain", memo],
+ ["text/identifier", `${username}@${host}`]
]);
if (nostr) {