Skip to content

Commit

Permalink
Merge pull request #14 from getAlby/task-use-internal
Browse files Browse the repository at this point in the history
chore: use internal url for getalby
  • Loading branch information
bumi authored Jan 24, 2024
2 parents 02fc774 + c41b73d commit 0884c23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ func ToUrl(identifier string) (string, string, string, error) {
lnurlpUrl := fmt.Sprintf("https://%s/.well-known/lnurlp/%s", parts[1], parts[0])
nostrUrl := fmt.Sprintf("https://%s/.well-known/nostr.json?name=%s", parts[1], parts[0])

urlPrefix := "https://getalby.com"
replacement := "http://alby-mainnet-getalbycom"

keysendUrl = strings.Replace(keysendUrl, urlPrefix, replacement, 1)
lnurlpUrl = strings.Replace(lnurlpUrl, urlPrefix, replacement, 1)
nostrUrl = strings.Replace(nostrUrl, urlPrefix, replacement, 1)

return lnurlpUrl, keysendUrl, nostrUrl, nil
}

Expand Down

0 comments on commit 0884c23

Please sign in to comment.