Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
AccountId uuid.UUID
ParentURI string // URI of the parent post being viewed
ParentPost *ThreadPost // The parent post
Replies []ThreadPost // Replies to the parent
Selected int // Currently selected reply index (-1 = parent selected)
Offset int // Scroll offset for pagination
Width int
Height int
LocalDomain string // Cached local domain for mention highlighting
ReturnView common.SessionState // View to return to on Esc (default: HomeTimelineView)
// contains filtered or unexported fields
}
Model represents the thread view state
func InitialModel ¶
InitialModel creates a new thread view model
type ThreadPost ¶
type ThreadPost struct {
ID uuid.UUID
Author string
Content string
Time time.Time
ObjectURI string // ActivityPub object id (canonical URI, returns JSON)
ObjectURL string // ActivityPub object url (human-readable web UI link, preferred for display)
IsLocal bool // Whether this is a local post
IsParent bool // Whether this is the parent post
IsDeleted bool // Whether this post was deleted (placeholder)
ReplyCount int // Number of replies to this post
LikeCount int // Number of likes on this post
BoostCount int // Number of boosts on this post
}
ThreadPost represents a post in the thread (either parent or reply)
Click to show internal directories.
Click to hide internal directories.