From a896f5ad6212d85cd5f8e8aa01f2b8434c4cad0a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 5 Feb 2020 16:56:45 +0000 Subject: [PATCH] More generic twitter post detection --- filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filters.py b/filters.py index 20ed0c3e3..0d843b720 100644 --- a/filters.py +++ b/filters.py @@ -41,9 +41,9 @@ def removeFilter(baseDir: str,nickname: str,domain: str, \ def isTwitterPost(content: str) -> bool: """Returns true if the given post content is a retweet or twitter crosspost """ - if '/twitter.com' in content or '@twitter.' in content: + if '/twitter.' in content or '@twitter.' in content: return True - elif 'RT:' in content: + elif '>RT <' in content: return True return False