Преглед изворни кода

Align the emoji shortcode map with names Chatto accepts

The map sent 🤔 as "thinking" but the server knows "thinking_face", and
several speech-bubble and limb emoji had no entry at all - those
reactions could never be posted. Corrected the wrong entry, added the
missing ones.
Paul Klumpp пре 1 недеља
родитељ
комит
e01f0c204e
1 измењених фајлова са 9 додато и 3 уклоњено
  1. 9 3
      platform_config.py

+ 9 - 3
platform_config.py

@@ -82,8 +82,6 @@ class ChattoConstants:
     # HTTP timeout used for outbound URL fetches
     HTTP_TIMEOUT = 30
 
-    # Emoji shortcode mapping (Chatto uses shortcode names, not unicode emoji)
-
     # Emoji shortcode mapping (Chatto uses shortcode names, not unicode emoji)
     EMOJI_TO_SHORTCODE: Dict[str, str] = {
         "👍": "thumbsup",
@@ -99,12 +97,20 @@ class ChattoConstants:
         "🚀": "rocket",
         "🔥": "fire",
         "💯": "100",
-        "🤔": "thinking",
+        "🤔": "thinking_face",
         "👏": "clap",
         "🙏": "pray",
         "😅": "sweat_smile",
         "😴": "sleeping",
         "⏳": "hourglass",
+        "💭": "thought_balloon",
+        "👓": "glasses",
+        "👁️‍🗨️": "eye_in_speech_bubble",
+        "💬": "speech_balloon",
+        "🗨️": "left_speech_bubble",
+        "🗯️": "right_anger_bubble",
+        "🦾": "mechanical_arm",
+        "🦿": "mechanical_leg",
     }
 
     # Chunk size for asset uploads (256 KB)