condense information

This commit is contained in:
Ted Unangst 2019-06-02 23:57:36 -04:00
parent de4e1693ae
commit 156a4029a2
2 changed files with 5 additions and 5 deletions

2
fun.go
View File

@ -318,7 +318,7 @@ func originate(u string) string {
func honkerhandle(h string) string {
m := re_unurl.FindStringSubmatch(h)
if len(m) > 2 {
return fmt.Sprintf("%s@%s", m[2], m[1])
return m[2]
}
return h
}

View File

@ -2,22 +2,22 @@
{{ with .Honk }}
<header>
<img alt="avatar" src="/a?a={{ .Honker}}">
<p><a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> <span class="clip">{{ .What }} {{ .Date.Format "02 Jan 2006 15:04" }} <a href="{{ .URL }}" rel=noreferrer>{{ .URL }}</a></span>
<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>
{{ if .Oonker }}
<br>
<span style="margin-left: 3em;" class="clip">
<span style="margin-left: 1em;" class="clip">
original: {{ .Oonker }}
</span>
{{ else }}
{{ if .RID }}
<br>
<span style="margin-left: 3em;" class="clip">
<span style="margin-left: 1em;" class="clip">
in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
</span>
{{ end }}
{{ end }}
<br>
<span style="margin-left: 3em;" class="clip">
<span style="margin-left: 1em;" class="clip">
convoy: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a>
</span>
</header>