From 2495d3389e0489e4d69f9162c989ae10e92b6e6e Mon Sep 17 00:00:00 2001 From: r Date: Fri, 13 Dec 2019 20:33:20 +0000 Subject: Use account mentions as default text in replies --- renderer/model.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'renderer/model.go') 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, } } -- cgit v1.2.3