diff options
Diffstat (limited to 'internal/api/model/statuscontext.go')
-rw-r--r-- | internal/api/model/statuscontext.go | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/internal/api/model/statuscontext.go b/internal/api/model/statuscontext.go index 205672dc8..f2519c0a3 100644 --- a/internal/api/model/statuscontext.go +++ b/internal/api/model/statuscontext.go @@ -29,15 +29,16 @@ type ThreadContext struct { } type WebThreadContext struct { - // Parents in the thread. - Ancestors []*WebStatus `json:"ancestors"` - - // Children in the thread. - Descendants []*WebStatus `json:"descendants"` + // Status around which this + // thread ctx was constructed. + Status *WebStatus - // The status around which the ancestors - // + descendants context was constructed. - Status *WebStatus `json:"-"` + // Ordered slice of statuses + // for rendering in template. + // + // Includes ancestors, target + // status, and descendants. + Statuses []*WebStatus // Total length of // the main thread. |