blob: 8905e6558029e0391ef862564dce4a5f8b1b209e (
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
46
47
48
49
50
51
52
53
|
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
Meta Meta
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
}
type Meta struct {
Title string
Description string
Url string
Preview string
}
|