diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index f95e338c5..383bbf896 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -192,7 +192,7 @@ def sanitize(sanitized): htmlsource = f'' sanitized = sanitized.replace(replacing, htmlsource) - sanitized = sanitized.replace("https://mobile.twitter.com", "https://twitter.com") + sanitized = sanitized.replace("https://mobile.", "https://").replace("https://m.", "https://") for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]: sanitized = sanitized.replace(rd, "https://old.reddit.com/")