From fba106842f3372fb2f108302dcb5598ae8e7c6ff Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 2 Jun 2022 14:39:09 +0100 Subject: [PATCH] Also exclude nitter when twitter posts are disallowed --- filters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/filters.py b/filters.py index 1382f3ded..244e990a7 100644 --- a/filters.py +++ b/filters.py @@ -100,7 +100,9 @@ def remove_global_filter(base_dir: str, words: str) -> bool: def _is_twitter_post(content: str) -> bool: """Returns true if the given post content is a retweet or twitter crosspost """ - if '/twitter.' in content or '@twitter.' in content: + if '/twitter.' in content or \ + '/nitter.' in content or \ + '@twitter.' in content: return True if '>RT <' in content: return True