forked from MarseyWorld/MarseyWorld
master
parent
35ff2d1f25
commit
978c3eb880
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue