From a20de6950724a75c1447c82a15131ce148d003dd Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 23 Aug 2023 02:16:07 +0300 Subject: [PATCH] fix mobile wikipedia links --- 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 b47e17664..f7b3fa0d3 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -757,7 +757,7 @@ def normalize_url(url): .replace("https://nitter.42l.fr/", "https://twitter.com/") \ .replace("https://nitter.net/", "https://twitter.com/") \ .replace("https://m.facebook.com", "https://facebook.com") \ - .replace("https://m.wikipedia.org", "https://wikipedia.org") \ + .replace("https://en.m.wikipedia.org", "https://en.wikipedia.org") \ .replace("https://www.instagram.com", "https://instagram.com") \ .replace("https://www.tiktok.com", "https://tiktok.com") \ .replace("https://imgur.com/", "https://i.imgur.com/") \