mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-19 12:01:12 +02:00
check for missing protocol
This commit is contained in:
@@ -15,6 +15,7 @@ from .crud import get_address, get_address_by_username, get_domain
|
|||||||
|
|
||||||
|
|
||||||
async def lnurl_response(username: str, domain: str, request: Request):
|
async def lnurl_response(username: str, domain: str, request: Request):
|
||||||
|
print("LNU", username, domain)
|
||||||
address = await get_address_by_username(username, domain)
|
address = await get_address_by_username(username, domain)
|
||||||
|
|
||||||
if not address:
|
if not address:
|
||||||
@@ -54,7 +55,7 @@ async def lnurl_callback(address_id, amount: int = Query(...)):
|
|||||||
if address.wallet_endpoint.endswith("/")
|
if address.wallet_endpoint.endswith("/")
|
||||||
else address.wallet_endpoint
|
else address.wallet_endpoint
|
||||||
)
|
)
|
||||||
|
print("BASE", base_url)
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
try:
|
try:
|
||||||
call = await client.post(
|
call = await client.post(
|
||||||
|
Reference in New Issue
Block a user