all repos — honk @ 30a6d352a8e21cd935f375bc7f06b8a6342b79b8

my fork of honk

make username link to local view instead of always remote
Ted Unangst tedu@tedunangst.com
Fri, 05 Jul 2019 13:11:53 -0400
commit

30a6d352a8e21cd935f375bc7f06b8a6342b79b8

parent

e981a55ce775534c92d2ad3837c2015d04ddc87d

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M views/honk.htmlviews/honk.html

@@ -6,7 +6,13 @@ <img alt="avatar" src="/a?a={{ .Honker}}">

{{ if .Oonker }} <img alt="avatar" src="/a?a={{ .Oonker}}"> {{ end }} -<p><a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> <span class="clip"><a href="{{ .URL }}" rel=noreferrer>{{ .What }}</a> {{ .Date.Format "02 Jan 2006 15:04" }}</span> +<p> +{{ if $bonkcsrf }} +<a href="/h?xid={{ .Honker }}" rel=noreferrer>{{ .Username }}</a> +{{ else }} +<a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> +{{ end }} +<span class="clip"><a href="{{ .URL }}" rel=noreferrer>{{ .What }}</a> {{ .Date.Format "02 Jan 2006 15:04" }}</span> {{ if .Oonker }} <br> <span style="margin-left: 1em;" class="clip">