Fix: embed date filter in query instead of --since flag

Bird CLI doesn't support --since as a CLI flag.
Use X's search syntax: 'topic since:YYYY-MM-DD'

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt Van Horn
2026-02-03 13:26:51 -08:00
parent 89bdbae0fe
commit bcf5c2cc3f
+5 -2
View File
@@ -127,11 +127,14 @@ def search_x(
""" """
count = DEPTH_CONFIG.get(depth, DEPTH_CONFIG["default"]) count = DEPTH_CONFIG.get(depth, DEPTH_CONFIG["default"])
# Build query with date filter using X's search syntax
# Bird doesn't support --since flag, but X search accepts since:YYYY-MM-DD in query
query = f"{topic} since:{from_date}"
# Build command # Build command
cmd = [ cmd = [
"bird", "search", "bird", "search",
topic, query,
"--since", from_date,
"-n", str(count), "-n", str(count),
"--json", "--json",
] ]