{{define "components/status.html"}} {{$s := .Status}} {{$viewer := .Account}} {{$preview := .Preview}} {{$isBoost := $s.BoostOfID}} {{$original := $s.BoostOf}} {{if $isBoost}} {{$s = $original}} {{end}} {{if or (not $s) (not $s.Account)}} {{/* Orphaned boost or a status missing its author (purged/orphaned account): render nothing rather than panic on a nil Account. */}} {{else}} {{$blocked := accountsBlocked $viewer $s.AccountID}} {{$postPath := statusPath $s}} {{$authorPath := profilePath $s.Account $viewer}} {{if $preview}} {{$postPath = printf "/search?q=%s" (urlquery $s.URL)}} {{$authorPath = printf "/resolve?q=%s" (urlquery $s.Account.ActorURI)}} {{end}}