aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-13 20:33:20 +0000
committerr <r@freesoftwareextremist.com>2019-12-13 20:33:20 +0000
commit2495d3389e0489e4d69f9162c989ae10e92b6e6e (patch)
tree32b3b8423f767cf45dc2a1ea22f7bce7a4e0e64c /renderer
parent9ba666009bc5c67f7c09103393e4142f6739c78d (diff)
downloadbloat-2495d3389e0489e4d69f9162c989ae10e92b6e6e.tar.gz
bloat-2495d3389e0489e4d69f9162c989ae10e92b6e6e.zip
Use account mentions as default text in replies
Diffstat (limited to 'renderer')
-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,
}
}