From 978c3eb8800a1ed23e0c819ac56b6a3793995e43 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Jul 2022 03:04:33 +0200 Subject: [PATCH] fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2242521?context=8#context --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index a38d8c026..2a100db0a 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -21,7 +21,7 @@ from math import floor def normalize_urls_runtime(body, v): if v: - body = body.replace("https://old.reddit.com/r/", f'https://{v.reddit}/r/') + 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)