From 20395970985abc437726d5f7d3acb631a98703d9 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 23 Aug 2022 11:51:37 -0500 Subject: [PATCH] Removes properly new twitter quote statuses on templating system --- src/sessions/twitter/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sessions/twitter/templates.py b/src/sessions/twitter/templates.py index f8d6e9bb..160261e5 100644 --- a/src/sessions/twitter/templates.py +++ b/src/sessions/twitter/templates.py @@ -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):