From adc77681df5a8a3de45794d9472d0937b34a5674 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 28 Jul 2022 18:47:44 +0200 Subject: [PATCH] switch to another nitter instance --- files/classes/comment.py | 2 +- files/templates/settings_filters.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 377349901..94dd3b9a3 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -22,7 +22,7 @@ def normalize_urls_runtime(body, v): if v: body = body.replace("https://old.reddit.com/r/", f'https://{v.reddit}/r/').replace("https://old.reddit.com/u/", f'https://{v.reddit}/u/') - if v.nitter: body = twitter_to_nitter_regex.sub(r'https://nitter.net/\1', body) + if v.nitter: body = twitter_to_nitter_regex.sub(r'https://nitter.42l.fr/\1', body) return body diff --git a/files/templates/settings_filters.html b/files/templates/settings_filters.html index 5cb32c859..02678bb69 100644 --- a/files/templates/settings_filters.html +++ b/files/templates/settings_filters.html @@ -202,7 +202,7 @@ - Enable if you would like to automatically convert twitter.com links to nitter.net links. + Enable if you would like to automatically convert twitter.com links to nitter.42l.fr links.