Fixes
This commit is contained in:
@@ -916,7 +916,7 @@ def sanitize_visible_urls_in_text(text, http_client, has_media=False):
|
||||
return text, None
|
||||
|
||||
working = clean_post_text(text)
|
||||
url_pattern = r'(?:(?:https?://)|(?:www\.))[^\s<>"\'']+'
|
||||
url_pattern = r'(?:(?:https?://)|(?:www\.))[^\s<>"\']+'
|
||||
urls = re.findall(url_pattern, working)
|
||||
|
||||
if not urls:
|
||||
|
||||
Reference in New Issue
Block a user