From 9fea2f21da6babf3037cc0f5a9067cd55f6bfa92 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 20 Jul 2023 22:47:12 +0300 Subject: [PATCH] fix /r/place links --- files/classes/comment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/classes/comment.py b/files/classes/comment.py index eec116ebc..96fe4b6e8 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -26,6 +26,9 @@ def normalize_urls_runtime(body, v): body = twitter_to_nitter_regex.sub(r'\1https://nitter.lacontrevoie.fr/', body) if v.imginn: body = body.replace('https://instagram.com/', 'https://imginn.com/') + + body = body.replace('https://old.reddit.com/r/place', 'https://new.reddit.com/r/place') + return body