aboutsummaryrefslogtreecommitdiff
path: root/renderer/model.go
diff options
context:
space:
mode:
Diffstat (limited to 'renderer/model.go')
-rw-r--r--renderer/model.go20
1 files changed, 11 insertions, 9 deletions
diff --git a/renderer/model.go b/renderer/model.go
index ddc9e2d..6f6acc4 100644
--- a/renderer/model.go
+++ b/renderer/model.go
@@ -24,17 +24,19 @@ func NewTimelinePageTemplateData(statuses []*mastodon.Status, hasNext bool, next
}
type ThreadPageTemplateData struct {
- Status *mastodon.Status
- Context *mastodon.Context
- PostReply bool
- ReplyToID string
+ Status *mastodon.Status
+ Context *mastodon.Context
+ PostReply bool
+ ReplyToID string
+ ReplyContent string
}
-func NewThreadPageTemplateData(status *mastodon.Status, context *mastodon.Context, postReply bool, replyToID string) *ThreadPageTemplateData {
+func NewThreadPageTemplateData(status *mastodon.Status, context *mastodon.Context, postReply bool, replyToID string, replyContent string) *ThreadPageTemplateData {
return &ThreadPageTemplateData{
- Status: status,
- Context: context,
- PostReply: postReply,
- ReplyToID: replyToID,
+ Status: status,
+ Context: context,
+ PostReply: postReply,
+ ReplyToID: replyToID,
+ ReplyContent: replyContent,
}
}