This commit is contained in:
Dylan 2025-04-28 23:34:23 +01:00
parent c67422d569
commit e64aa41ff6

View File

@ -156,6 +156,8 @@ def getApiResponse(tweet,include_txt=False,include_rtf=False):
if 'entities' in tweetL and 'urls' in tweetL['entities']:
for eurl in tweetL['entities']['urls']:
if 'expanded_url' not in eurl:
continue
if "/status/" in eurl["expanded_url"] and eurl["expanded_url"].startswith("https://twitter.com/"):
twText = twText.replace(eurl["url"], "")
else: