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/archive.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'routes/archive.go') diff --git a/routes/archive.go b/routes/archive.go index 87f3b8b..f3b4487 100644 --- a/routes/archive.go +++ b/routes/archive.go @@ -5,6 +5,7 @@ import ( "github.com/FChannel0/FChannel-Server/config" "github.com/FChannel0/FChannel-Server/db" "github.com/FChannel0/FChannel-Server/util" + "github.com/FChannel0/FChannel-Server/webfinger" "github.com/gofiber/fiber/v2" ) @@ -29,7 +30,7 @@ func ArchiveGet(ctx *fiber.Ctx) error { returnData.Board.Post.Actor = actor.Id var err error - returnData.Instance, err = db.GetActorFromDB(config.Domain) + returnData.Instance, err = activitypub.GetActorFromDB(config.Domain) capt, err := db.GetRandomCaptcha() if err != nil { @@ -40,7 +41,7 @@ func ArchiveGet(ctx *fiber.Ctx) error { returnData.Title = "/" + actor.Name + "/ - " + actor.PreferredUsername - returnData.Boards = db.Boards + returnData.Boards = webfinger.Boards returnData.Posts = collection.OrderedItems -- cgit v1.2.3