aboutsummaryrefslogtreecommitdiff
path: root/routes/webfinger.go
diff options
context:
space:
mode:
Diffstat (limited to 'routes/webfinger.go')
-rw-r--r--routes/webfinger.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/webfinger.go b/routes/webfinger.go
index 221b7dc..9789e39 100644
--- a/routes/webfinger.go
+++ b/routes/webfinger.go
@@ -33,7 +33,8 @@ func Webfinger(c *fiber.Ctx) error {
actorDomain[0] = "/" + actorDomain[0]
}
- if res, err := activitypub.IsActorLocal(config.TP + "" + actorDomain[1] + "" + actorDomain[0]); err == nil && !res {
+ actor := activitypub.Actor{Id: config.TP + "" + actorDomain[1] + "" + actorDomain[0]}
+ if res, err := actor.IsLocal(); err == nil && !res {
c.Status(fiber.StatusBadRequest)
return c.Send([]byte("actor not local"))
} else if err != nil {