mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 20:36:16 +02:00
fixed internal lnurl
This commit is contained in:
@@ -167,8 +167,8 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
|
|||||||
|
|
||||||
lnurl_response: Union[None, bool, str] = None
|
lnurl_response: Union[None, bool, str] = None
|
||||||
if data.lnurl_callback:
|
if data.lnurl_callback:
|
||||||
if "lnurl_balance_check" in g().data:
|
if "lnurl_balance_check" in data:
|
||||||
save_balance_check(g().wallet.id, data.lnurl_balance_check)
|
save_balance_check(wallet.id, data.lnurl_balance_check)
|
||||||
|
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
try:
|
try:
|
||||||
@@ -179,7 +179,7 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
|
|||||||
"balanceNotify": url_for(
|
"balanceNotify": url_for(
|
||||||
f"/withdraw/notify/{urlparse(data.lnurl_callback).netloc}",
|
f"/withdraw/notify/{urlparse(data.lnurl_callback).netloc}",
|
||||||
external=True,
|
external=True,
|
||||||
wal=g().wallet.id,
|
wal=wallet.id,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
timeout=10,
|
timeout=10,
|
||||||
|
Reference in New Issue
Block a user