Removes properly new twitter quote statuses on templating system

This commit is contained in:
Manuel Cortez 2022-08-23 11:51:37 -05:00
parent 74fd4bfadf
commit 2039597098
No known key found for this signature in database
GPG Key ID: 9E0735CA15EFE790

View File

@ -36,7 +36,7 @@ def process_text(tweet):
# Replace URLS for extended version of those.
if hasattr(tweet, "entities"):
text = utils.expand_urls(text, tweet.entities)
text = re.sub(r"https://twitter.com/\w+/status/\d+", "", text)
text = re.sub(r"https://twitter.com/\w+/status/\S+", "", text)
return text
def process_image_descriptions(entities):