irislib / iris-messenger

Decentralized messenger
https://iris.to
MIT License
719 stars 157 forks source link

lud16 onion support in iris.to #433

Open sybip opened 1 year ago

sybip commented 1 year ago

Hi, posting this on behalf of a nostrich who doesn't have a github account.

On the web version of iris.to, when zapping a note by a user whose lightning address is an onion address, the LNURLP GET request is attempted over HTTPS, and typically fails with "lnurl error". This is inconsistent with LUD16 2nd paragraph, which specifies that requests to onion endpoints should be over HTTP.

Any clarifications, please speak with Max at npub1nu6fe9qul69lwdelsvrh0hpfnh339s3a39368w2059ezxzpp7wsscj9cyc

Thanks in advance for looking into this.

sybip commented 1 year ago

Probably around here: https://github.com/irislib/iris-messenger/blob/07a8ac7a8ff62e2c9f275ab21d162d115f45d716/src/js/utils/LNURL.ts#L39-L41