pull/20/head
justcool393 2022-11-19 03:53:44 -06:00
parent c751739a20
commit c10280ada3
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -543,7 +543,7 @@
</div>
{% 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'] %}
<script defer src="{{'js/togglePostEdit.js' | asset}}"></script>
@ -558,7 +558,7 @@
{% endif %}
<script defer src="{{'js/clipboard.js' | asset}}"></script>
{% include "comments.html" if not p.replies %}
{% include "comments.html" if not p.replies ignore missing %}
{% if v.highlightcomments %}
<script>