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/admin.go | |
parent | 5b52d269faa2ce2014d0feba603a2122361cf4eb (diff) |
restructured code base to prevent circular dependicies
Diffstat (limited to 'routes/admin.go')
-rw-r--r-- | routes/admin.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/admin.go b/routes/admin.go index 528e40c..c714b06 100644 --- a/routes/admin.go +++ b/routes/admin.go @@ -3,6 +3,7 @@ package routes import ( "github.com/FChannel0/FChannel-Server/config" "github.com/FChannel0/FChannel-Server/db" + "github.com/FChannel0/FChannel-Server/post" "github.com/FChannel0/FChannel-Server/webfinger" "github.com/gofiber/fiber/v2" ) @@ -49,11 +50,11 @@ func AdminIndex(ctx *fiber.Ctx) error { adminData.Board.ModCred, _ = db.GetPasswordFromSession(ctx) adminData.Title = actor.Name + " Admin page" - adminData.Boards = db.Boards + adminData.Boards = webfinger.Boards adminData.Board.Post.Actor = actor.Id - adminData.PostBlacklist, _ = db.GetRegexBlacklistDB() + adminData.PostBlacklist, _ = post.GetRegexBlacklistDB() adminData.Themes = &config.Themes |