aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-25 12:05:40 -0800
committerAdam Soltys <[email protected]>2026-02-25 12:05:46 -0800
commitb65425e4910167c1b3c04141a4df7e000d74ef11 (patch)
tree9f021cb1d7493f810a71307910b4cb65336000c7
parentd4cc945775910edcb61dae525fe27aef428dd72f (diff)
downloadcoinos-server-b65425e4910167c1b3c04141a4df7e000d74ef11.tar.gz
coinos-server-b65425e4910167c1b3c04141a4df7e000d74ef11.zip
fix lnurl description_hash mismatch
Co-Authored-By: Claude Opus 4.6 <[email protected]>
-rw-r--r--routes/lnurl.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts
index 0358488e..4810bf3c 100644
--- a/routes/lnurl.ts
+++ b/routes/lnurl.ts
@@ -108,9 +108,8 @@ export default {
let { username } = user;
username = username.replace(/\s/g, "").toLowerCase();
- const memo = comment ?? `Paying ${username}@${host}`;
let metadata = JSON.stringify([
- ["text/plain", memo],
+ ["text/plain", `Paying ${username}@${host}`],
["text/identifier", `${username}@${host}`],
]);
@@ -136,6 +135,11 @@ export default {
user,
});
+ if (comment) {
+ invoice.memo = comment;
+ await s(`invoice:${invoice.id}`, invoice);
+ }
+
res.send({
pr: invoice.text,
routes: [],