Merge branch 'fix/re_import_error' into feat/img_key

This commit is contained in:
H3CoF6
2026-02-27 22:46:24 +08:00
Unverified
+5 -7
View File
@@ -3851,8 +3851,7 @@ def _collect_chat_messages(
render_type = "system"
template = _extract_xml_tag_text(raw_text, "template")
if template:
import re
# import re
pat_usernames.update({m.group(1) for m in re.finditer(r"\$\{([^}]+)\}", template) if m.group(1)})
content_text = "[拍一拍]"
else:
@@ -3992,8 +3991,7 @@ def _collect_chat_messages(
elif local_type == 50:
render_type = "voip"
try:
import re
# import re
block = raw_text
m_voip = re.search(
r"(<VoIPBubbleMsg[^>]*>.*?</VoIPBubbleMsg>)",
@@ -4750,7 +4748,7 @@ def list_chat_messages(
render_type = "system"
template = _extract_xml_tag_text(raw_text, "template")
if template:
import re
# import re
pat_usernames.update({m.group(1) for m in re.finditer(r"\$\{([^}]+)\}", template) if m.group(1)})
content_text = "[拍一拍]"
@@ -4882,7 +4880,7 @@ def list_chat_messages(
elif local_type == 50:
render_type = "voip"
try:
import re
# import re
block = raw_text
m_voip = re.search(
@@ -5231,7 +5229,7 @@ def list_chat_messages(
if existing_local:
try:
import re
# import re
cur = str(m.get("emojiUrl") or "")
if cur and re.match(r"^https?://", cur, flags=re.I) and ("/api/chat/media/emoji" not in cur):
m["emojiRemoteUrl"] = cur