Changes to more pages (#29)

* Changes to more pages

* fix: correct thumbnail URL in config.json

Changed image URI from lnbits/tpos to lnbits/nwcprovider.

* Fix lint after main merge (tasks.py)

- remove trailing whitespace (ruff W291)
- collapse description chain (black)
This commit is contained in:
DoktorShift 2026-06-03 11:47:38 +02:00 • committed by GitHub
commit 14a96271ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 41 additions and 7 deletions

View file

@ -426,11 +426,9 @@ async def _on_list_transactions(
"type": "outgoing" if p.is_out else "incoming",
"invoice": p.bolt11,
# Fallback chain so a human-readable description reaches
# the NWC client. Mirror of `_on_lookup_invoice`
# the NWC client. Mirror of `_on_lookup_invoice`
"description": (
(p.extra or {}).get("comment")
or invoice_data.description
or p.memo
(p.extra or {}).get("comment") or invoice_data.description or p.memo
),
"description_hash": invoice_data.description_hash,
"preimage": p.preimage if is_settled or p.is_in else None,