From c10280ada318ea0f7794468af9f17b496bdaf526 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 19 Nov 2022 03:53:44 -0600 Subject: [PATCH] testing --- files/routes/errors.py | 1 + files/templates/submission.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/routes/errors.py b/files/routes/errors.py index 49a549ff4..9afb6eeae 100644 --- a/files/routes/errors.py +++ b/files/routes/errors.py @@ -35,6 +35,7 @@ def error(e): if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": title, "code": e.code, "description": msg, "details": details}, e.code img = ERROR_MARSEYS.get(e.code, 'marseyl') + # TODO: make sure v isn't required from anything error.html needs return render_template('errors/error.html', err=True, title=title, msg=msg, details=details, img=img), e.code @app.errorhandler(401) diff --git a/files/templates/submission.html b/files/templates/submission.html index faaeed7da..9c225d829 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -543,7 +543,7 @@ {% if v %} - {% include "modals/delete_post.html" if v.id == p.author_id %} + {% include "modals/delete_post.html" if v.id == p.author_id else '' %} {% include "modals/report_post.html" %} {% if v.id == p.author_id or v.admin_level >= PERMS['POST_EDITING'] %} @@ -558,7 +558,7 @@ {% endif %} -{% include "comments.html" if not p.replies %} +{% include "comments.html" if not p.replies ignore missing %} {% if v.highlightcomments %}