Commit 504b2f6

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-10-28 08:31:15
fix(history): remove D1 and Tursio specific chat filters
1 parent 9e862e4
Changed files (1)
src
history
src/history/utils.py
@@ -89,10 +89,6 @@ def fine_grained_check(info: dict) -> bool:
         keywords = [x.strip() for x in os.environ[f"HISTORY_{cid}_SKIP_KEYWORDS"].split(",") if x.strip()]
         if any(x in info["text"] for x in keywords):
             return False
-    if os.getenv("HISTORY_D1_ONLY_SYNC_CHATS") and cid not in strings_list(env_key="HISTORY_D1_ONLY_SYNC_CHATS"):
-        return False
-    if os.getenv("HISTORY_TURSO_ONLY_SYNC_CHATS") and cid not in strings_list(env_key="HISTORY_TURSO_ONLY_SYNC_CHATS"):
-        return False
     return True