mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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
This commit is contained in:
@@ -126,8 +126,17 @@ type WebStatus struct {
|
||||
// display this status in the web view.
|
||||
Indent int
|
||||
|
||||
// This status is the first status after
|
||||
// the "main" thread, so it and everything
|
||||
// This status is the last visible status
|
||||
// in the main thread, so everything below
|
||||
// can be considered "replies".
|
||||
ThreadLastMain bool
|
||||
|
||||
// This status is the one around which
|
||||
// the thread context was constructed.
|
||||
ThreadContextStatus bool
|
||||
|
||||
// This status is the first visibile status
|
||||
// after the "main" thread, so it and everything
|
||||
// below it can be considered "replies".
|
||||
ThreadFirstReply bool
|
||||
}
|
||||
|
@@ -29,15 +29,16 @@ type ThreadContext struct {
|
||||
}
|
||||
|
||||
type WebThreadContext struct {
|
||||
// Parents in the thread.
|
||||
Ancestors []*WebStatus `json:"ancestors"`
|
||||
// Status around which this
|
||||
// thread ctx was constructed.
|
||||
Status *WebStatus
|
||||
|
||||
// Children in the thread.
|
||||
Descendants []*WebStatus `json:"descendants"`
|
||||
|
||||
// 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.
|
||||
|
Reference in New Issue
Block a user