From b6901437bfc0ddde3ef805866374ff9fe6858823 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 9 Jul 2023 05:51:16 +0200 Subject: [PATCH] Continued: - added further aliases --- fba/helpers/software.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fba/helpers/software.py b/fba/helpers/software.py index 31224b4..50651a1 100644 --- a/fba/helpers/software.py +++ b/fba/helpers/software.py @@ -34,10 +34,10 @@ def alias(software: str) -> str: if software in ["akkoma", "rebased", "akkounfucked", "ched"]: logger.debug("Setting pleroma: software='%s'", software) software = "pleroma" - elif software in ["hometown", "ecko"]: + 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"]: + elif software in ["slipfox calckey", "calckey", "groundpolis", "foundkey", "cherrypick", "meisskey", "magnetar", "keybump", "dolphin", "calckey social"]: logger.debug("Setting misskey: software='%s'", software) software = "misskey" elif software in ["runtube.re", "islameye"]: -- 2.39.5