From 19f73ae9cf2afffbbb2abc71eb80c6d5bdccca52 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 14 Sep 2026 13:19:52 -0700 Subject: printer: publish receipts at QoS 1 and clean LNURL metadata memos Receipts were published at QoS 0, so a printer that was briefly offline (WiFi blip, keepalive timeout) never received them. QoS 1 lets the broker queue them for printers that hold a persistent session. LNURL-pay invoices carry the raw metadata array as their memo when the payer leaves no comment; unwrap the text/plain entry before printing. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_011cCouc5ASRXHDp5esLciEK --- routes/payments.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'routes') diff --git a/routes/payments.ts b/routes/payments.ts index 00230c62..accb09fd 100644 --- a/routes/payments.ts +++ b/routes/payments.ts @@ -740,6 +740,7 @@ export default { mqtt.publish( username, `pay:${p.amount}:${p.tip}:${p.rate}:${p.created}:${p.id}`, + { qos: 1 }, ); res.send({ ok: true }); -- cgit v1.2.3