logger.debug("domain='%s' has pending nodeinfo data, flushing ...", domain)
instances.update_data(domain)
- logger.info("Checking %d instances from domain='%s' ...", len(peerlist), domain)
+ logger.info("Checking %d instance(s) from domain='%s',software='%s' ...", len(peerlist), domain, software)
for instance in peerlist:
logger.debug("instance='%s'", instance)
if instance is None:
elif not utils.is_domain_wanted(instance):
logger.debug("instance='%s' is not wanted - SKIPPED!", instance)
continue
- elif instance.find("/profile/") > 0 or instance.find("/users/") > 0:
+ elif instance.find("/profile/") > 0 or instance.find("/users/") > 0 or (instances.is_registered(instance.split("/")[0]) and instance.find("/c/") > 0):
logger.debug("instance='%s' is a link to a single user profile - SKIPPED!", instance)
continue
elif not instances.is_registered(instance):
def add(domain: str, origin: str, command: str, path: str = None, software: str = None):
logger.debug("domain='%s',origin='%s',command='%s',path='%s',software='%s' - CALLED!", domain, origin, command, path, software)
domain_helper.raise_on(domain)
+
if not isinstance(origin, str) and origin is not None:
raise ValueError(f"origin[]='{type(origin)}' is not 'str'")
elif origin == "":
raise ValueError(f"Bad origin name='{origin}'")
elif blacklist.is_blacklisted(domain):
raise Exception(f"domain='{domain}' is blacklisted, but method invoked")
- elif domain.find("/profile/") > 0 or domain.find("/users/") > 0 or (software == "lemmy" and domain.find("/c/") > 0):
+ elif domain.find("/profile/") > 0 or domain.find("/users/") > 0 or (is_registered(domain.split("/")[0]) and domain.find("/c/") > 0):
raise Exception(f"domain='{domain}' is a single user")
if software is None: