mirror of https://gitlab.com/bashrc2/epicyon
More generic domain
parent
e49e43bb08
commit
cd014f66b6
|
@ -41,7 +41,7 @@ def removeFilter(baseDir: str,nickname: str,domain: str, \
|
||||||
def isTwitterPost(content: str) -> bool:
|
def isTwitterPost(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.com' in content or '@twitter.com' in content:
|
if '/twitter.com' in content or '@twitter.' in content:
|
||||||
return True
|
return True
|
||||||
elif 'RT:' in content:
|
elif 'RT:' in content:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue