reintroduce domain validation for .nostr domains

This commit is contained in:
dd dd 2024-07-29 10:12:55 +02:00
parent db232f8e16
commit 23a96a6128

View File

@ -251,7 +251,7 @@ func ParseDestinationDomain(destination string) (string, []string, error) {
return "", nil, err return "", nil, err
} }
if !url.IsDomain { if !url.IsDomain {
// return "", nil, fmt.Errorf("destination is not a domain") return "", nil, fmt.Errorf("destination is not a domain")
} }
var subdomains []string var subdomains []string
split := strings.Split(url.SubName, ".") split := strings.Split(url.SubName, ".")