diff --git a/fun.go b/fun.go index cf3b726..f1f2f87 100644 --- a/fun.go +++ b/fun.go @@ -38,6 +38,9 @@ func reverbolate(honks []*Honk) { } else { h.URL = h.XID } + if h.RID != "" && strings.IndexByte(h.RID, '/') == -1 { + h.RID = h.Honker + "/h/" + h.RID + } } else { idx := strings.LastIndexByte(h.Honker, '/') if idx != -1 { diff --git a/views/honk.html b/views/honk.html index ec53dce..30807ee 100644 --- a/views/honk.html +++ b/views/honk.html @@ -1,6 +1,15 @@
{{ with .Honk }} -
avatar

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

+
+avatar +

{{ .Username }} {{ .What }} {{ .Date.Format "02 Jan 2006 15:04" }} {{ .URL }} +{{ if .RID }} +
+ +in reply to: {{ .RID }} + +{{ end }} +

{{ .HTML }} {{ range .Donks }}