Make NIP-05 Domain Tappable
Closes: #275 Changelog-Added: Make purple badges on profile page tappable
This commit is contained in:
committed by
William Casarin
parent
b367382aae
commit
43cc3b6b6b
@@ -15,6 +15,10 @@ struct NIP05 {
|
||||
URL(string: "https://\(host)/.well-known/nostr.json?name=\(username)")
|
||||
}
|
||||
|
||||
var siteUrl: URL? {
|
||||
URL(string: "https://\(host)")
|
||||
}
|
||||
|
||||
static func parse(_ nip05: String) -> NIP05? {
|
||||
let parts = nip05.split(separator: "@")
|
||||
guard parts.count == 2 else {
|
||||
|
||||
Reference in New Issue
Block a user