aboutsummaryrefslogtreecommitdiff
path: root/routes/structs.go
blob: c145a6d5b925dac703121f19ed43b2fe10d93cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package routes

import (
	"github.com/FChannel0/FChannel-Server/activitypub"
	"github.com/FChannel0/FChannel-Server/db"
)

type PageData struct {
	Title             string
	PreferredUsername string
	Board             db.Board
	Pages             []int
	CurrentPage       int
	TotalPage         int
	Boards            []db.Board
	Posts             []activitypub.ObjectBase
	Key               string
	PostId            string
	Instance          activitypub.Actor
	InstanceIndex     []activitypub.ObjectBase
	ReturnTo          string
	NewsItems         []db.NewsItem
	BoardRemainer     []int

	Themes      *[]string
	ThemeCookie string
}

type AdminPage struct {
	Title         string
	Board         db.Board
	Key           string
	Actor         string
	Boards        []db.Board
	Following     []string
	Followers     []string
	Reported      []db.Report
	Domain        string
	IsLocal       bool
	PostBlacklist []db.PostBlacklist
	AutoSubscribe bool

	Themes      *[]string
	ThemeCookie string
}