Twitter filter

merge-requests/30/head
Bob Mottram 2024-08-03 11:05:55 +01:00
parent 5a39521ecd
commit a873377a98
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ def _is_twitter_post(content: str) -> bool:
"""Returns true if the given post content is a retweet or twitter crosspost
"""
features = (
'/x.com', '/twitter.', '/nitter.', '@twitter.', '@nitter.',
'/x.com', '/twitter.', '/nitter.',
'@twitter.', '@nitter.','@x.com',
'>RT <', '_tw<', '_tw@', 'tweet', 'Tweet', '🐦🔗'
)
for feat in features: