From b65425e4910167c1b3c04141a4df7e000d74ef11 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 25 Feb 2026 12:05:40 -0800 Subject: fix lnurl description_hash mismatch Co-Authored-By: Claude Opus 4.6 --- routes/lnurl.ts | 8 ++++++-- 1 file 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: [], -- cgit v1.2.3