From c83e96b8a740a44f565068d06c4f12eef486b7e5 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 13 Jul 2024 12:26:16 +0200 Subject: [chore/frontend] Tweak threading a bit, inform about hidden replies (#3097) * [chore/frontend] Tweak threading a bit, inform about hidden replies * whoops * round off bottom of replies col-header if no replies visible --- internal/api/model/statuscontext.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'internal/api/model/statuscontext.go') 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. -- cgit v1.2.3