]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 2 Jan 2024 19:30:01 +0000 (20:30 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 2 Jan 2024 19:30:01 +0000 (20:30 +0100)
- added alias "miraiskey" for "misskey"
- moved all those aliases to "private" variable _misskey_aliases

fba/helpers/software.py

index 285ff15e8eb5f01c8229ef0dcff4dbca8e41274e..dbb4ccc65063f1ca4c002044ddd9ffb87e41ec90 100644 (file)
@@ -31,6 +31,39 @@ relays = [
     "pub-relay"
 ]
 
+# Aliases for misskey
+_misskey_aliases = [
+    "slipfox calckey",
+    "calckey",
+    "groundpolis",
+    "foundkey",
+    "cherrypick",
+    "meisskey",
+    "magnetar",
+    "keybump",
+    "dolphin",
+    "calckey social",
+    "azk.sns",
+    "firefish",
+    "qtmmsky",
+    "iceshrimp",
+    "owohub",
+    "re+",
+    "russkey",
+    "loverskey",
+    "hajkey",
+    "sharkey",
+    "renekey",
+    "renekey-lite",
+    "yoiyami",
+    "catnip",
+    "cyberskey",
+    "catodon",
+    "lycheebridge",
+    "goblin",
+    "miraiskey"
+]
+
 @lru_cache
 def alias(software: str) -> str:
     logger.debug("software='%s'- CALLED!", software)
@@ -55,7 +88,7 @@ def alias(software: str) -> str:
     elif software in ["hometown", "ecko", "fedibird", "glitchcafe"] or "되는 마스토돈" in software 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", "azk.sns", "firefish", "qtmmsky", "iceshrimp", "owohub", "re+", "russkey", "loverskey", "hajkey", "sharkey", "renekey", "renekey-lite", "yoiyami", "catnip", "cyberskey", "catodon", "lycheebridge", "goblin"] or "shumihub" in software or "мисскей" in software or "milkey" in software or "misskey" in software:
+    elif software in _misskey_aliases or "shumihub" in software or "мисскей" in software or "milkey" in software or "misskey" in software:
         logger.debug("Setting misskey: software='%s'", software)
         software = "misskey"
     elif software in ["runtube.re", "islameye"]: