make "conext=8" be in all contexts

pull/200/head
Aevann 2023-09-09 01:47:46 +03:00
parent b3d61fb515
commit c828ce3d9e
1 changed files with 2 additions and 0 deletions

View File

@ -780,6 +780,8 @@ def normalize_url(url):
domain = parsed_url.netloc
qd = parse_qs(parsed_url.query, keep_blank_values=True)
filtered = {k: val for k, val in qd.items() if is_whitelisted(domain, k)}
if domain == 'old.reddit.com':
filtered['context'] = 8
new_url = ParseResult(scheme="https",
netloc=parsed_url.netloc,
path=parsed_url.path,