From 174b9517767d2eec39b50feb7cca2371816fb2f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 12 Mar 2024 11:27:49 +0100 Subject: [PATCH] Continued: - added new aliases for pleroma - moved pleroma aliases to "private" module variable --- fba/helpers/software.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/fba/helpers/software.py b/fba/helpers/software.py index 43746d8..7389c9c 100644 --- a/fba/helpers/software.py +++ b/fba/helpers/software.py @@ -78,6 +78,18 @@ _misskey_aliases = [ "shrimpkey" ] +# Aliases for pleroma +_pleroma_aliases = [ + "akkoma", + "rebased", + "akkounfucked", + "ched", + "incestoma", + "revolver", + "menzoberranzan", + "moon-eyed" +] + @lru_cache def alias(software: str) -> str: logger.debug("software='%s'- CALLED!", software) @@ -94,7 +106,7 @@ def alias(software: str) -> str: cleared = tidyup.domain(software) logger.debug("cleared='%s'- AFTER!", cleared) - if cleared in ["akkoma", "rebased", "akkounfucked", "ched", "incestoma", "revolver"] or "pleroma" in cleared: + if cleared in _pleroma_aliases or "pleroma" in cleared: logger.debug("Setting pleroma: cleared='%s'", cleared) cleared = "pleroma" elif "radiant" in cleared: -- 2.39.5