mirror of https://gitlab.com/bashrc2/epicyon
Twitter filter
parent
5a39521ecd
commit
a873377a98
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue