diff --git a/files/routes/posts.py b/files/routes/posts.py index 0302c3dde..931fa1b7b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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, diff --git a/files/routes/settings.py b/files/routes/settings.py index 839c687ae..b3d7541e7 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -329,7 +329,7 @@ def settings_profile_post(v): theme = request.values.get("theme") if theme: - if theme in ["dramblr","classic","transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"]: + if theme in ["dramblr","classic","classic_dark","transparent", "win98", "dark", "light", "coffee", "tron", "4chan", "midnight"]: if theme == "transparent" and not v.background: return {"error": "You need to set a background to use the transparent theme!"} v.theme = theme diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index a768663cc..7d2448cb3 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -92,7 +92,7 @@

Change the theme for the website.