damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 7780120504cdb40ecf2cd6af0b0cfa971370cba1
parent 1696e0365e228359d105f4bb75b179981c3dc724
Author: William Casarin <jb55@jb55.com>
Date:   Fri,  3 Feb 2023 11:29:11 -0800

ensure lnurls are actually lnurls

Changelog-Fixed: Check for broken lnurls

Diffstat:
Mdamus/Nostr/Nostr.swift | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/damus/Nostr/Nostr.swift b/damus/Nostr/Nostr.swift @@ -110,6 +110,10 @@ struct Profile: Codable { return lnaddress_to_lnurl(addr); } + if !addr.hasPrefix("lnurl") { + return nil + } + return addr; }