From 18cf2f50a7d8998894db45526c0f0677c68fe595 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 28 Jan 2022 00:08:41 +0200 Subject: [PATCH] cv --- files/routes/posts.py | 2 +- files/routes/settings.py | 2 +- files/templates/settings_profile.html | 2 +- seed-db.sql | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) 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.