Revert "fix: extend RFC1918 LNURL carve-out to the HTTP-views path"

This reverts commit 40dce41.

Going with TLS termination on the dev LNbits instead, so the
RFC1918 carve-out becomes unnecessary. The lnbits-core
`/api/v1/lnurlscan` consumer-side validator applies the same
HTTPS-required rule python-lnurl enforces; carving the producer
side out only got greg's LNURL generated, not redeemed.
This commit is contained in:
Padreug 2026-06-01 21:43:37 +02:00
commit 0e06ab2087
2 changed files with 38 additions and 51 deletions

View file

@ -211,9 +211,7 @@ def _populate_lnurl(link: WithdrawLink) -> WithdrawLink:
duplicating state LNbits already knows. See aiolabs/withdraw#1.
"""
try:
encoded = create_lnurl_from_baseurl(link)
link.lnurl = encoded.bech32
link.lnurl_url = encoded.url
link.lnurl, link.lnurl_url = create_lnurl_from_baseurl(link)
except ValueError:
pass
return link