mirror of https://gitlab.com/bashrc2/epicyon
Also exclude nitter when twitter posts are disallowed
parent
d273936ccf
commit
fba106842f
|
@ -100,7 +100,9 @@ def remove_global_filter(base_dir: str, words: str) -> bool:
|
||||||
def _is_twitter_post(content: str) -> bool:
|
def _is_twitter_post(content: str) -> bool:
|
||||||
"""Returns true if the given post content is a retweet or twitter crosspost
|
"""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
|
return True
|
||||||
if '>RT <' in content:
|
if '>RT <' in content:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue