From 7a3260c86a5baa76535960302c0fc897ff0f0bbc Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 23 Feb 2024 17:30:50 +0200 Subject: [PATCH] normalize 4chan urls for archiving + repost checking --- files/helpers/sanitize.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 9af486c0e..cdd455a1c 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -721,6 +721,9 @@ domain_replacements = { 'https://letmegooglethat.com/?q=': 'https://google.com/search?q=', 'https://lmgtfy.app/?q=': 'https://google.com/search?q=', DONATE_LINK: f'{SITE_FULL}/donate', + 'https://boards.4chan.org/': 'https://archived.moe/', + 'https://desuarchive.org/': 'https://archived.moe/', + 'https://archive.4plebs.org/': 'https://archived.moe/', } def normalize_url(url):