From 2d1b8658b6914ccad6b97e08e15b24e95fca597f Mon Sep 17 00:00:00 2001 From: Panniantong Date: Tue, 24 Feb 2026 12:38:25 +0100 Subject: [PATCH] fix: handle curly quotes in Twitter Jina fallback detection Jina Reader returns smart/curly quotes (U+2019) instead of ASCII apostrophes. Use apostrophe-free substrings for detection. --- agent_reach/channels/twitter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent_reach/channels/twitter.py b/agent_reach/channels/twitter.py index d72d975..35d3459 100644 --- a/agent_reach/channels/twitter.py +++ b/agent_reach/channels/twitter.py @@ -73,10 +73,10 @@ class TwitterChannel(Channel): # Detect unusable Jina responses for X/Twitter (JS-required pages) unusable_indicators = [ - "this page doesn't exist", - "Don't miss what's happening", + "page doesn", # "this page doesn't exist" (handles both ' and ') + "miss what", # "Don't miss what's happening" "Something went wrong. Try reloading", - "Log in", + "Log in](", # Markdown link: [Log in](...) ] if any(indicator in text for indicator in unusable_indicators): return ReadResult(