From 1ca7b793185d6de7717824dadf8f34205ec9ee67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 12 Jul 2023 10:30:27 +0200 Subject: [PATCH] Continued: - roadhouse is an alias for hubzilla, it is currently unsupported as it doesn't provide needed APIs for fetching peers and blocklists but just in case they add it - same with nextcloud and others - shumihub is an alias for misskey --- fba/helpers/software.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fba/helpers/software.py b/fba/helpers/software.py index 88d8658..992858c 100644 --- a/fba/helpers/software.py +++ b/fba/helpers/software.py @@ -37,7 +37,7 @@ def alias(software: str) -> str: elif software in ["hometown", "ecko"] or "mastodon" in software: logger.debug("Setting mastodon: software='%s'", software) software = "mastodon" - elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social"]: + elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social"] or "shumihub" in software: logger.debug("Setting misskey: software='%s'", software) software = "misskey" elif software in ["runtube.re", "islameye"]: @@ -46,6 +46,9 @@ def alias(software: str) -> str: elif software in ["nextcloud social", "nextcloudpi", "storage share"]: logger.debug("Setting nextcloud: software='%s'", software) software = "nextcloud" + elif software == "roadhouse": + logger.debug("Setting hubzilla: software='%s'", software) + software = "hubzilla" elif software.find("/") > 0: logger.warning("Spliting of slash: software='%s'", software) software = software.split("/")[-1] -- 2.39.5