Aevann1 2022-07-04 03:04:33 +02:00
parent 35ff2d1f25
commit 978c3eb880
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ from math import floor
def normalize_urls_runtime(body, v): def normalize_urls_runtime(body, v):
if 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) if v.nitter: body = twitter_to_nitter_regex.sub(r'https://nitter.net/\1', body)