From: Roland Häder Date: Tue, 12 Mar 2024 10:27:49 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=174b9517767d2eec39b50feb7cca2371816fb2f4;p=fba.git Continued: - added new aliases for pleroma - moved pleroma aliases to "private" module variable --- 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: