forked from rDrama/rDrama
make "conext=8" be in all contexts
parent
b3d61fb515
commit
c828ce3d9e
|
@ -780,6 +780,8 @@ def normalize_url(url):
|
||||||
domain = parsed_url.netloc
|
domain = parsed_url.netloc
|
||||||
qd = parse_qs(parsed_url.query, keep_blank_values=True)
|
qd = parse_qs(parsed_url.query, keep_blank_values=True)
|
||||||
filtered = {k: val for k, val in qd.items() if is_whitelisted(domain, k)}
|
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",
|
new_url = ParseResult(scheme="https",
|
||||||
netloc=parsed_url.netloc,
|
netloc=parsed_url.netloc,
|
||||||
path=parsed_url.path,
|
path=parsed_url.path,
|
||||||
|
|
Loading…
Reference in New Issue