feat: add disable option for LNURLw (#70)

This commit is contained in:
Tiago Vasconcelos 2026-03-17 21:41:17 +00:00 committed by GitHub
commit 74852e3494
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 76 additions and 7 deletions

View file

@ -47,6 +47,7 @@ async def display(request: Request, link_id):
"request": request,
"spent": link.is_spent,
"lnurl_url": str(lnurl.url),
"enabled": link.enabled,
},
)
@ -60,7 +61,6 @@ async def print_qr(request: Request, link_id):
)
if link.uses == 0:
return withdraw_renderer().TemplateResponse(
"withdraw/print_qr.html",
{"request": request, "link": link.json(), "unique": False},