diff options
author | FChannel <> | 2022-04-30 11:00:55 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 1892327cee2c3fa1d3bea729bd08eb63c2189a96 (patch) | |
tree | 7b846f7d9caf46fba6c9d15ff81b9d89dcca9476 /routes/structs.go | |
parent | 5b52d269faa2ce2014d0feba603a2122361cf4eb (diff) |
restructured code base to prevent circular dependicies
Diffstat (limited to 'routes/structs.go')
-rw-r--r-- | routes/structs.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/routes/structs.go b/routes/structs.go index 8905e65..8cfb6ee 100644 --- a/routes/structs.go +++ b/routes/structs.go @@ -3,16 +3,18 @@ package routes import ( "github.com/FChannel0/FChannel-Server/activitypub" "github.com/FChannel0/FChannel-Server/db" + "github.com/FChannel0/FChannel-Server/post" + "github.com/FChannel0/FChannel-Server/webfinger" ) type PageData struct { Title string PreferredUsername string - Board db.Board + Board webfinger.Board Pages []int CurrentPage int TotalPage int - Boards []db.Board + Boards []webfinger.Board Posts []activitypub.ObjectBase Key string PostId string @@ -29,16 +31,16 @@ type PageData struct { type AdminPage struct { Title string - Board db.Board + Board webfinger.Board Key string Actor string - Boards []db.Board + Boards []webfinger.Board Following []string Followers []string Reported []db.Report Domain string IsLocal bool - PostBlacklist []db.PostBlacklist + PostBlacklist []post.PostBlacklist AutoSubscribe bool Themes *[]string |