hotfix3: fix for good
This commit is contained in:
parent
9b5a86485e
commit
adb1f3f52b
1 changed files with 7 additions and 13 deletions
20
lnurl.py
20
lnurl.py
|
|
@ -148,22 +148,16 @@ async def api_lnurl_response(
|
||||||
# for lnaddress, we have to set this otherwise
|
# for lnaddress, we have to set this otherwise
|
||||||
# the metadata won't have the identifier
|
# the metadata won't have the identifier
|
||||||
link.domain = urlparse(str(request.url)).netloc
|
link.domain = urlparse(str(request.url)).netloc
|
||||||
callback = str(
|
url = request.url_for("lnurlp.api_lnurl_lnaddr_callback", link_id=link.id)
|
||||||
request.url_for(
|
|
||||||
"lnurlp.api_lnurl_lnaddr_callback",
|
|
||||||
link_id=link.id,
|
|
||||||
).include_query_params(webhook_data=webhook_data)
|
|
||||||
)
|
|
||||||
else:
|
else:
|
||||||
callback = str(
|
url = request.url_for("lnurlp.api_lnurl_callback", link_id=link.id)
|
||||||
request.url_for(
|
|
||||||
"lnurlp.api_lnurl_callback",
|
if webhook_data:
|
||||||
link_id=link.id,
|
url = url.include_query_params(webhook_data=webhook_data)
|
||||||
).include_query_params(webhook_data=webhook_data)
|
|
||||||
)
|
|
||||||
|
|
||||||
resp = LnurlPayResponse(
|
resp = LnurlPayResponse(
|
||||||
callback=callback,
|
callback=str(url),
|
||||||
min_sendable=round(link.min * rate) * 1000, # type: ignore
|
min_sendable=round(link.min * rate) * 1000, # type: ignore
|
||||||
max_sendable=round(link.max * rate) * 1000, # type: ignore
|
max_sendable=round(link.max * rate) * 1000, # type: ignore
|
||||||
metadata=link.lnurlpay_metadata,
|
metadata=link.lnurlpay_metadata,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue