mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-06-19 01:18:46 +00:00
Add local and twkn timelines
This commit is contained in:
parent
51bdb20402
commit
f6f7b27e40
9 changed files with 45 additions and 20 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue