From: Mint <> Date: Wed, 24 Aug 2022 08:36:58 +0000 (+0300) Subject: Another masto fork X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11df2bc51171199088a0e513b9e5c6a1340953ff;p=fba.git Another masto fork --- diff --git a/fetch_blocks.py b/fetch_blocks.py index 924c4bb..65b8f63 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -98,6 +98,8 @@ def get_type(domain: str) -> str: return "pleroma" elif res.json()["software"]["name"] == "hometown": return "mastodon" + elif res.json()["software"]["name"] == "ecko": + return "mastodon" else: return res.json()["software"]["name"] elif res.status_code == 404: diff --git a/fetch_instances.py b/fetch_instances.py index d3434c7..e609035 100644 --- a/fetch_instances.py +++ b/fetch_instances.py @@ -36,6 +36,10 @@ def get_type(instdomain: str) -> str: if res.ok: if res.json()["software"]["name"] == "akkoma": return "pleroma" + elif res.json()["software"]["name"] == "hometown": + return "mastodon" + elif res.json()["software"]["name"] == "ecko": + return "mastodon" else: return res.json()["software"]["name"] elif res.status_code == 404: