- domain/path might be a valid installation path, but some bug in Friendica
caused my instance to be reported as 'f.haeder.net/featured' which sucks
- still we need to let domain/path pass here as some installations might
be happening to be installed in such a way
- sure, best option is always a sub-domain ...
elif domain.endswith(".arpa"):
print(f"WARNING: domain='{domain}' is a reversed .arpa domain and should not be used generally.")
return
- elif not validators.domain(domain):
+ elif not validators.domain(domain.split("/")[0]):
raise ValueError(f"domain='{domain}' is not a valid domain")
elif not instances.is_registered(domain.split("/")[0]):
# DEBUG: print("DEBUG: Adding new domain:", domain, origin)