FIX: generate LNURL server-side for unique voucher links (#68)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
68ff753cfd
commit
8a20df70fe
5 changed files with 19 additions and 3 deletions
|
|
@ -45,6 +45,7 @@ async def api_links(
|
|||
detail=str(exc),
|
||||
) from exc
|
||||
linkk.lnurl = str(lnurl.bech32)
|
||||
linkk.lnurl_url = str(lnurl.url)
|
||||
|
||||
return links
|
||||
|
||||
|
|
@ -75,6 +76,7 @@ async def api_link_retrieve(
|
|||
detail=str(exc),
|
||||
) from exc
|
||||
link.lnurl = str(lnurl.bech32)
|
||||
link.lnurl_url = str(lnurl.url)
|
||||
return link
|
||||
|
||||
|
||||
|
|
@ -166,6 +168,7 @@ async def api_link_create_or_update(
|
|||
) from exc
|
||||
|
||||
link.lnurl = str(lnurl.bech32)
|
||||
link.lnurl_url = str(lnurl.url)
|
||||
|
||||
return link
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue