From 55151111d2faf0362cec786ca6ac9c19e358fdb4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 21 Jul 2023 15:17:50 +0300 Subject: [PATCH] fix r/place replacements --- files/classes/comment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 887023283..d957a5188 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -19,7 +19,7 @@ from files.helpers.sorting_and_time import * from .saves import CommentSaveRelationship def normalize_urls_runtime(body, v): - body = body.replace('https://old.reddit.com/r/place', 'https://new.reddit.com/r/place') + body = body.replace('https://old.reddit.com/r/place/?cx=', 'https://new.reddit.com/r/place/?cx=') if not v: return body @@ -30,7 +30,7 @@ def normalize_urls_runtime(body, v): if v.imginn: body = body.replace('https://instagram.com/', 'https://imginn.com/') - body = body.replace(f'https://{v.reddit}/r/place', 'https://new.reddit.com/r/place') + body = body.replace(f'https://{v.reddit}/r/place/?cx=', 'https://new.reddit.com/r/place/?cx=') return body