if res.ok and "text/html" in res.headers["content-type"]:
res = get(f"https://{domain}/nodeinfo/2.1", headers=headers, timeout=5)
if res.ok:
- if res.json()["software"]["name"] == "akkoma":
+ if res.json()["software"]["name"] in ["akkoma", "rebased"]:
return "pleroma"
- elif res.json()["software"]["name"] == "rebased":
- return "pleroma"
- elif res.json()["software"]["name"] == "hometown":
- return "mastodon"
- elif res.json()["software"]["name"] == "ecko":
+ elif res.json()["software"]["name"] in ["hometown", "ecko"]:
return "mastodon"
- elif res.json()["software"]["name"] == "calckey":
+ elif res.json()["software"]["name"] in ["calckey", "groundpolis"]:
return "misskey"
else:
return res.json()["software"]["name"]
if res.ok and "text/html" in res.headers["content-type"]:
res = get(f"https://{instdomain}/nodeinfo/2.1", headers=headers, timeout=5)
if res.ok:
- if res.json()["software"]["name"] == "akkoma":
+ if res.json()["software"]["name"] in ["akkoma", "rebased"]:
return "pleroma"
- elif res.json()["software"]["name"] == "rebased":
- return "pleroma"
- elif res.json()["software"]["name"] == "hometown":
- return "mastodon"
- elif res.json()["software"]["name"] == "ecko":
+ elif res.json()["software"]["name"] in ["hometown", "ecko"]:
return "mastodon"
- elif res.json()["software"]["name"] == "calckey":
+ elif res.json()["software"]["name"] in ["calckey", "groundpolis"]:
return "misskey"
else:
return res.json()["software"]["name"]