]> git.mxchange.org Git - fba.git/commitdiff
Another masto fork
authorMint <>
Wed, 24 Aug 2022 08:36:58 +0000 (11:36 +0300)
committerMint <>
Wed, 24 Aug 2022 08:36:58 +0000 (11:36 +0300)
fetch_blocks.py
fetch_instances.py

index 924c4bb3c43af7bd96938d3989402a28b1bb5d84..65b8f6366d683e3716d97b11500997a2d2952d9b 100644 (file)
@@ -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:
index d3434c7c4375b90015043a03403628a4e9cdf1be..e6090353e4e75fbdb2c03e579714ae1367b9a0db 100644 (file)
@@ -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: