diff --git a/files/routes/errors.py b/files/routes/errors.py index f8b3401ede..89f7da9fe9 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): diff --git a/files/templates/comments.html b/files/templates/comments.html index 98301f86d6..6dc22436fa 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -945,4 +945,17 @@
{% endif %} +{% if not ajax and v and v.theme == 'midnight' %} + +{% endif %} +