From d268f35da42dc292b4fd7c2620165a0371fdc1f0 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 5 Jul 2019 13:11:53 -0400 Subject: [PATCH] make username link to local view instead of always remote --- views/honk.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/views/honk.html b/views/honk.html index 59b05f4..5fde519 100644 --- a/views/honk.html +++ b/views/honk.html @@ -6,7 +6,13 @@ {{ if .Oonker }} avatar {{ end }} -

{{ .Username }} {{ .What }} {{ .Date.Format "02 Jan 2006 15:04" }} +

+{{ if $bonkcsrf }} +{{ .Username }} +{{ else }} +{{ .Username }} +{{ end }} +{{ .What }} {{ .Date.Format "02 Jan 2006 15:04" }} {{ if .Oonker }}