From 0ccc97164a8b2a69d14419dce7f1b8f648b59473 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 16:41:18 -0400 Subject: [PATCH] live: disable topic denylist for testing (TOPIC_FILTER=1 restores) --- live/server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/live/server.py b/live/server.py index 5bb05c7..d223abe 100644 --- a/live/server.py +++ b/live/server.py @@ -249,6 +249,10 @@ _TOPIC_DENYLIST = { "kill all", "how to make a bomb", "how to build a bomb", } def _topic_allowed(topic): + # denylist disabled for testing (2026-10-02): set TOPIC_FILTER=1 in the + # environment to restore the check without a code change + if os.environ.get("TOPIC_FILTER", "0") != "1": + return True low = topic.lower() return not any(term in low for term in _TOPIC_DENYLIST)