From 11df2bc51171199088a0e513b9e5c6a1340953ff Mon Sep 17 00:00:00 2001 From: Mint <> Date: Wed, 24 Aug 2022 11:36:58 +0300 Subject: [PATCH] Another masto fork --- fetch_blocks.py | 2 ++ fetch_instances.py | 4 ++++ 2 files changed, 6 insertions(+) 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: -- 2.39.5