From 1892327cee2c3fa1d3bea729bd08eb63c2189a96 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 30 Apr 2022 11:00:55 -0700 Subject: restructured code base to prevent circular dependicies --- routes/structs.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'routes/structs.go') 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 -- cgit v1.2.3