From 580dec5b89215310ce34341e11ff17fe38bdb63a Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 8 May 2022 14:57:40 -0700 Subject: more cleanup, logging and error logging everywhere things are mostly in place can work on "features" and polish --- routes/webfinger.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'routes/webfinger.go') diff --git a/routes/webfinger.go b/routes/webfinger.go index 9789e39..495e6c7 100644 --- a/routes/webfinger.go +++ b/routes/webfinger.go @@ -6,7 +6,7 @@ import ( "github.com/FChannel0/FChannel-Server/activitypub" "github.com/FChannel0/FChannel-Server/config" - "github.com/FChannel0/FChannel-Server/webfinger" + "github.com/FChannel0/FChannel-Server/util" "github.com/gofiber/fiber/v2" ) @@ -38,11 +38,11 @@ func Webfinger(c *fiber.Ctx) error { c.Status(fiber.StatusBadRequest) return c.Send([]byte("actor not local")) } else if err != nil { - return err + return util.MakeError(err, "Webfinger") } - var finger webfinger.Webfinger - var link webfinger.WebfingerLink + var finger activitypub.Webfinger + var link activitypub.WebfingerLink finger.Subject = "acct:" + actorDomain[0] + "@" + actorDomain[1] link.Rel = "self" -- cgit v1.2.3