aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-18 22:14:02 +0000
committerr <r@freesoftwareextremist.com>2019-12-18 22:14:02 +0000
commitd7fc7cf2f5e9c11a401ee34ed498bca762c72b79 (patch)
treece0558257067eaf737c6fbcef1de8fef78c127fd /renderer
parente3565202903a051b19aa76b81a0b5f9f3fdea996 (diff)
downloadbloat-d7fc7cf2f5e9c11a401ee34ed498bca762c72b79.tar.gz
bloat-d7fc7cf2f5e9c11a401ee34ed498bca762c72b79.zip
Add reply links on thread page
Diffstat (limited to 'renderer')
-rw-r--r--renderer/model.go10
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,
}
}