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:
parent
0204f8ff85
commit
14a96271ad
5 changed files with 41 additions and 7 deletions
6
tasks.py
6
tasks.py
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue