aboutsummaryrefslogtreecommitdiff
path: root/renderer
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-25 04:30:21 +0000
committerr <r@freesoftwareextremist.com>2019-12-25 04:30:21 +0000
commitf6f7b27e40f97ffe88323be01bea1d04ca39d6b0 (patch)
tree2aad7592cc20bc9d1d59e5e9da5d83b1d15774cc /renderer
parent51bdb20402abc08102e83a234bb4f6720c5a1166 (diff)
downloadbloat-f6f7b27e40f97ffe88323be01bea1d04ca39d6b0.tar.gz
bloat-f6f7b27e40f97ffe88323be01bea1d04ca39d6b0.zip
Add local and twkn timelines
Diffstat (limited to 'renderer')
-rw-r--r--renderer/model.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/renderer/model.go b/renderer/model.go
index 9ec4a9a..be777f6 100644
--- a/renderer/model.go
+++ b/renderer/model.go
@@ -18,6 +18,7 @@ func NewNavbarTemplateData(notificationCount int, user *mastodon.Account) *Navba
}
type TimelinePageTemplateData struct {
+ Title string
Statuses []*mastodon.Status
HasNext bool
NextLink string
@@ -27,9 +28,10 @@ type TimelinePageTemplateData struct {
NavbarData *NavbarTemplateData
}
-func NewTimelinePageTemplateData(statuses []*mastodon.Status, hasNext bool, nextLink string, hasPrev bool,
+func NewTimelinePageTemplateData(title string, statuses []*mastodon.Status, hasNext bool, nextLink string, hasPrev bool,
prevLink string, postContext model.PostContext, navbarData *NavbarTemplateData) *TimelinePageTemplateData {
return &TimelinePageTemplateData{
+ Title: title,
Statuses: statuses,
HasNext: hasNext,
NextLink: nextLink,