diff options
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 |