ensure lnurls are actually lnurls
Changelog-Fixed: Check for broken lnurls
This commit is contained in:
1 parent
1696e0365e
commit
7780120504
1 file changed
+4
@@ -110,6 +110,10 @@ struct Profile: Codable {
|
|||||||
return lnaddress_to_lnurl(addr);
|
return lnaddress_to_lnurl(addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !addr.hasPrefix("lnurl") {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user