From ce2e91c24140e3859f69621a1810bb8f3117d86f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 22 Aug 2021 21:51:59 +0200 Subject: [PATCH] fdfd --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index f95e338c50..383bbf8964 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/")