This commit is contained in:
Aevann1 2022-01-28 00:08:41 +02:00
parent a16c4b37a9
commit fa1f6a337a
5 changed files with 199 additions and 4 deletions

View file

@ -704,7 +704,7 @@ def submit_post(v):
parsed_url = urlparse(url)
domain = parsed_url.netloc
if domain == 'old.reddit.com':
if domain in ('old.reddit.com','twitter.com'):
new_url = ParseResult(scheme="https",
netloc=parsed_url.netloc,
path=parsed_url.path,