Add local and twkn timelines

This commit is contained in:
r 2019-12-25 04:30:21 +00:00
parent 51bdb20402
commit f6f7b27e40
9 changed files with 45 additions and 20 deletions

View file

@ -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,