show comment extra only when present
This commit is contained in:
parent
aadebddd82
commit
8e5ed7d23d
1 changed files with 3 additions and 1 deletions
4
lnurl.py
4
lnurl.py
|
|
@ -71,10 +71,12 @@ async def api_lnurl_callback(
|
|||
extra = {
|
||||
"tag": "lnurlp",
|
||||
"link": link.id,
|
||||
"comment": comment,
|
||||
"extra": request.query_params.get("amount"),
|
||||
}
|
||||
|
||||
if comment:
|
||||
extra["comment"] = (comment,)
|
||||
|
||||
if lnaddress and link.username and link.domain:
|
||||
extra["lnaddress"] = f"{link.username}@{link.domain}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue