]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 12 Mar 2024 10:27:49 +0000 (11:27 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 12 Mar 2024 10:27:49 +0000 (11:27 +0100)
- added new aliases for pleroma
- moved pleroma aliases to "private" module variable

fba/helpers/software.py

index 43746d808aa34a08872fd2daa2d8be9e7d0e0c16..7389c9ca4af0449dfe896106c8b17f8628833c30 100644 (file)
@@ -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: