From 31feae606ac3cad362f1172ea135fe87f16833a3 Mon Sep 17 00:00:00 2001 From: Deimos Date: Tue, 24 Sep 2019 20:35:31 -0600 Subject: [PATCH] Don't try to link "unknown user" to a user page This should be done better in some way, but will work for now. --- tildes/tildes/templates/macros/links.jinja2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tildes/tildes/templates/macros/links.jinja2 b/tildes/tildes/templates/macros/links.jinja2 index 8059239..fdbd725 100644 --- a/tildes/tildes/templates/macros/links.jinja2 +++ b/tildes/tildes/templates/macros/links.jinja2 @@ -2,7 +2,11 @@ {# SPDX-License-Identifier: AGPL-3.0-or-later #} {% macro username_linked(username) -%} - {{ username }} + {% if username != "unknown user" %} + {{ username }} + {% else %} + {{ username }} + {% endif %} {%- endmacro %} {% macro group_linked(group_path) -%}