diff options
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/model.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/renderer/model.go b/renderer/model.go index 4529386..2a320cc 100644 --- a/renderer/model.go +++ b/renderer/model.go @@ -36,21 +36,21 @@ func NewTimelinePageTemplateData(statuses []*mastodon.Status, hasNext bool, next } type ThreadPageTemplateData struct { - Status *mastodon.Status - Context *mastodon.Context + Statuses []*mastodon.Status PostReply bool ReplyToID string ReplyContent string + ReplyMap map[string][]mastodon.ReplyInfo NavbarData *NavbarTemplateData } -func NewThreadPageTemplateData(status *mastodon.Status, context *mastodon.Context, postReply bool, replyToID string, replyContent string, navbarData *NavbarTemplateData) *ThreadPageTemplateData { +func NewThreadPageTemplateData(statuses []*mastodon.Status, postReply bool, replyToID string, replyContent string, replyMap map[string][]mastodon.ReplyInfo, navbarData *NavbarTemplateData) *ThreadPageTemplateData { return &ThreadPageTemplateData{ - Status: status, - Context: context, + Statuses: statuses, PostReply: postReply, ReplyToID: replyToID, ReplyContent: replyContent, + ReplyMap: replyMap, NavbarData: navbarData, } } |