aboutsummaryrefslogtreecommitdiffstats
path: root/lib/notifications.ts
Commit message (Collapse)AuthorAgeFilesLines
* printer: publish receipts at QoS 1 and clean LNURL metadata memosAdam Soltys2026-09-141-1/+18
| | | | | | | | | | | | 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 <[email protected]> Claude-Session: https://claude.ai/code/session_011cCouc5ASRXHDp5esLciEK
* nwc: guard missing app record in the notification loopAdam Soltys2026-07-301-2/+7
| | | | | | | | | A pubkey can be in `${uid}:apps` before its `app:<pubkey>` record is written (NWC-connection creation race) or can outlive its record. Destructuring `notify` off the null lookup threw, and since the catch wraps the whole loop it aborted notifications for ALL of the user's apps. Skip null/absent apps and continue. Co-Authored-By: Claude Opus 4.8 <[email protected]>
* bolt12 zaps: pay offers, NWC pay/receive, per-user offers, NIP-44Adam Soltys2026-07-301-13/+32
| | | | | | | | | | | | | | | | - sendLightning fetches an invoice from lno1 offers (payer_note passthrough for NIP-177 zap intents) and pays it through the existing bolt12 path - NWC: new nwc#2 pay/receive methods (BIP-321 URIs, payer proofs stubbed until CLN 26.06 createproof), nip44_v2 alongside nip04 with per-request scheme detection, dual 23196/23197 notifications, 13194 refreshed when its content or encryption tag goes stale - standing per-user bolt12 offer via GET /offer; incoming bolt12 payments record invreq_payer_note as memo - parse/fetchinvoice routes handle offers; zap display parses kind 9736 receipts (amount tag + embedded intent) and drops a call to a sync() helper that never existed Co-Authored-By: Claude Fable 5 <[email protected]>
* remove logsAdam Soltys2026-03-171-1/+0
|
* rotate server keyAdam Soltys2025-09-291-3/+3
|
* opt in nwc notificationsAdam Soltys2025-03-121-1/+4
|
* notification timestamps in secondsAdam Soltys2025-03-121-2/+2
|
* log notificationsAdam Soltys2025-03-081-1/+3
|
* encrypt nwc notificationsAdam Soltys2025-02-271-3/+6
|
* nwc notificationsAdam Soltys2025-02-111-1/+46
|
* strip spaces from usernames before publishingAdam Soltys2024-11-071-1/+2
|
* detect internal paymentsAdam Soltys2024-10-311-20/+18
|
* subscriptionsAdam Soltys2024-10-191-25/+64
|
* typescriptAdam Soltys2024-08-261-0/+38