From 3e6e87624d4e51ae3724fb0eb4e1d6bfd0baf675 Mon Sep 17 00:00:00 2001 From: Mint <> Date: Thu, 25 Aug 2022 20:32:07 +0300 Subject: [PATCH] In case Gleason renames his fork in API endpoints --- fetch_blocks.py | 2 ++ fetch_instances.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/fetch_blocks.py b/fetch_blocks.py index 9fb517c..99983e6 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -96,6 +96,8 @@ def get_type(domain: str) -> str: if res.ok: if res.json()["software"]["name"] == "akkoma": return "pleroma" + elif res.json()["software"]["name"] == "rebased": + return "pleroma" elif res.json()["software"]["name"] == "hometown": return "mastodon" elif res.json()["software"]["name"] == "ecko": diff --git a/fetch_instances.py b/fetch_instances.py index e609035..4151145 100644 --- a/fetch_instances.py +++ b/fetch_instances.py @@ -36,6 +36,8 @@ def get_type(instdomain: str) -> str: if res.ok: if res.json()["software"]["name"] == "akkoma": return "pleroma" + elif res.json()["software"]["name"] == "rebased": + return "pleroma" elif res.json()["software"]["name"] == "hometown": return "mastodon" elif res.json()["software"]["name"] == "ecko": -- 2.39.5