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/archive.go | |
parent | 5b52d269faa2ce2014d0feba603a2122361cf4eb (diff) |
restructured code base to prevent circular dependicies
Diffstat (limited to 'routes/archive.go')
-rw-r--r-- | routes/archive.go | 5 |
1 files changed, 3 insertions, 2 deletions
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 |