I hate you python
This commit is contained in:
parent
2e8b6070dc
commit
0cbee4dc6c
1 changed files with 2 additions and 1 deletions
3
lnurl.py
3
lnurl.py
|
|
@ -85,11 +85,12 @@ async def api_lnurl_callback(
|
||||||
if lnaddress and link.username and link.domain:
|
if lnaddress and link.username and link.domain:
|
||||||
extra["lnaddress"] = f"{link.username}@{link.domain}"
|
extra["lnaddress"] = f"{link.username}@{link.domain}"
|
||||||
|
|
||||||
|
nostr_description = json.dumps(nostr)[1:-1] # remove leading and trailing "
|
||||||
payment_hash, payment_request = await create_invoice(
|
payment_hash, payment_request = await create_invoice(
|
||||||
wallet_id=link.wallet,
|
wallet_id=link.wallet,
|
||||||
amount=int(amount_received / 1000),
|
amount=int(amount_received / 1000),
|
||||||
memo=link.description,
|
memo=link.description,
|
||||||
unhashed_description=nostr.encode()
|
unhashed_description=nostr_description.encode()
|
||||||
if nostr
|
if nostr
|
||||||
else link.lnurlpay_metadata.encode(),
|
else link.lnurlpay_metadata.encode(),
|
||||||
extra=extra,
|
extra=extra,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue