normalize 4chan urls for archiving + repost checking

pull/225/head
Aevann 2024-02-23 17:30:50 +02:00
parent d549f70266
commit 7a3260c86a
1 changed files with 3 additions and 0 deletions

View File

@ -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):