From 2099e31b6ac7339317fcc382b3df61e04a7f71d3 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 25 Aug 2022 00:43:44 +0200 Subject: [PATCH 1/4] redirect to /login if the person has logged into the site before --- files/routes/errors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/errors.py b/files/routes/errors.py index f8b3401ed..89f7da9fe 100644 --- a/files/routes/errors.py +++ b/files/routes/errors.py @@ -19,7 +19,8 @@ def error_401(e): path = request.path qs = urlencode(dict(request.values)) argval = quote(f"{path}?{qs}", safe='') - return redirect(f"/signup?redirect={argval}") + if session.get("history"): return redirect(f"/login?redirect={argval}") + else: return redirect(f"/signup?redirect={argval}") @app.errorhandler(406) def error_406(e): From 32a3a49a450f85a180a6846c4597dfa27d736cd0 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 25 Aug 2022 01:18:37 +0200 Subject: [PATCH 2/4] sneed --- files/templates/comments.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/files/templates/comments.html b/files/templates/comments.html index 98301f86d..e1c7eafe4 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -945,4 +945,17 @@
{% endif %} +{% if not ajax and v %} + /* */ +{% endif %} + \ No newline at end of file From dfd0c6fcccb7d9b2b79690a1fc3f032483b15590 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 25 Aug 2022 01:19:25 +0200 Subject: [PATCH 3/4] sneed --- files/templates/comments.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index e1c7eafe4..ab60aac31 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -946,7 +946,7 @@ {% endif %} {% if not ajax and v %} - /* */ + {% endif %} \ No newline at end of file From af39571820950b25c35fd1b73fdc218601abc758 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 25 Aug 2022 01:19:44 +0200 Subject: [PATCH 4/4] sneed --- files/templates/comments.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index ab60aac31..6dc22436f 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -945,7 +945,7 @@
{% endif %} -{% if not ajax and v %} +{% if not ajax and v and v.theme == 'midnight' %}