mirror of
https://github.com/bumi/lntip
synced 2025-07-07 09:25:51 +00:00
Fix LNURL metadata
This commit is contained in:
parent
d403c19aab
commit
1515765c3f
2
lnme.go
2
lnme.go
@ -146,7 +146,7 @@ func main() {
|
|||||||
e.GET("/.well-known/lnurlp/:name", func(c echo.Context) error {
|
e.GET("/.well-known/lnurlp/:name", func(c echo.Context) error {
|
||||||
name := c.Param("name")
|
name := c.Param("name")
|
||||||
lightningAddress := name + "@" + c.Request().Host
|
lightningAddress := name + "@" + c.Request().Host
|
||||||
lnurlMetadata := "[\"text/identifier\", \"" + lightningAddress + "\"], [\"text/plain\", \"Sats for " + lightningAddress + "\"]"
|
lnurlMetadata := "[[\"text/identifier\", \"" + lightningAddress + "\"], [\"text/plain\", \"Sats for " + lightningAddress + "\"]]"
|
||||||
|
|
||||||
if amount := c.QueryParam("amount"); amount == "" {
|
if amount := c.QueryParam("amount"); amount == "" {
|
||||||
lnurlPayResponse1 := lnurl.LNURLPayResponse1{
|
lnurlPayResponse1 := lnurl.LNURLPayResponse1{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user