aboutsummaryrefslogtreecommitdiff
path: root/route/routes/webfinger.go
diff options
context:
space:
mode:
Diffstat (limited to 'route/routes/webfinger.go')
-rw-r--r--route/routes/webfinger.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/route/routes/webfinger.go b/route/routes/webfinger.go
index 3d5fa63..9b5ae25 100644
--- a/route/routes/webfinger.go
+++ b/route/routes/webfinger.go
@@ -6,7 +6,6 @@ import (
"github.com/FChannel0/FChannel-Server/activitypub"
"github.com/FChannel0/FChannel-Server/config"
- "github.com/FChannel0/FChannel-Server/util"
"github.com/gofiber/fiber/v2"
)
@@ -34,11 +33,9 @@ func Webfinger(c *fiber.Ctx) error {
}
actor := activitypub.Actor{Id: config.TP + "" + actorDomain[1] + "" + actorDomain[0]}
- if res, err := actor.IsLocal(); err == nil && !res {
+ if res, _ := actor.IsLocal(); !res {
c.Status(fiber.StatusBadRequest)
return c.Send([]byte("actor not local"))
- } else if err != nil {
- return util.MakeError(err, "Webfinger")
}
var finger activitypub.Webfinger