From: Roland Häder Date: Mon, 22 May 2023 04:02:53 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4febab32b6916c165b42ecb17bf96451ada49df5;p=fba.git Continued: - added other node rel --- diff --git a/fba.py b/fba.py index 1446844..621789f 100644 --- a/fba.py +++ b/fba.py @@ -181,7 +181,7 @@ def fetch_wellknown_nodeinfo(domain: str) -> list: # NOISY-DEBUG: print("DEBUG: Found links in nodeinfo():", len(nodeinfo["links"])) for link in nodeinfo["links"]: # NOISY-DEBUG: print("DEBUG: rel,href:", link["rel"], link["href"]) - if link["rel"] == "http://nodeinfo.diaspora.software/ns/schema/2.0": + if link["rel"] in ["http://nodeinfo.diaspora.software/ns/schema/2.0", "http://nodeinfo.diaspora.software/ns/schema/2.1"]: # NOISY-DEBUG: print("DEBUG: Fetching nodeinfo from:", link["href"]) res = reqto.get(link["href"]) # NOISY-DEBUG: print("DEBUG: href,res.ok:", link["href"], res.ok)