{{ define "view_object" }}
icon

{{ if .ViewContext.HasParent }} {{ .ViewContext.AttributedTo }} {{ if not (eq .ViewContext.ParentAttributedToLink .ViewContext.AttributedToLink) }} replied to {{ if eq .ViewContext.ParentAttributedTo "unknown" }} unknown {{ else }} {{ .ViewContext.ParentAttributedTo }} {{ end }} {{ else }} continued {{ end }} {{ else }} {{ .ViewContext.AttributedTo }} wrote {{ end }} {{ if .ViewContext.HasPublishedAt }} on {{ datetime .ViewContext.PublishedAt }} {{ end }} {{ if .ViewContext.HasAnnouncers }} boosted by {{ range $name, $link := .ViewContext.Announcers }} {{ $name }} {{ end }} {{ end }}

{{ if .ViewContext.Sensitive }}
{{ with .ViewContext.Content }} {{ . | wrapMaybe | toHTML }} {{ end }}
{{ else }} {{ with .ViewContext.Content }} {{ . | wrapMaybe | toHTML }} {{ end }} {{ end }} {{ if .ViewContext.Media }} {{ end }} {{ if or .ViewContext.TotalAnnounces .ViewContext.TotalReplies .ViewContext.TotalLikes .ViewContext.ViewerAnnounced }} {{ end }} {{ range .Children }} {{template "view_object" . }} {{ end }}
{{ end }}