From 90c10e76e72a5e2ad09e6c66d0615b8a02e719c0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 3 Mar 2023 23:36:29 +0200 Subject: [PATCH] fix 500 error --- files/templates/util/html_head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/util/html_head.html b/files/templates/util/html_head.html index c98032827..d4da3a6db 100644 --- a/files/templates/util/html_head.html +++ b/files/templates/util/html_head.html @@ -12,7 +12,7 @@ {% endmacro %} {% macro page_meta(title=none) %} - {% if 'post/' in request.path and p %} + {% if 'post/' in request.path and p and p.author_name %} {% if not v_forbid_deleted -%} {% set image = p.thumb_url if p.has_thumb %} {% set image = p.realurl(v) if p.is_image %}