diff options
author | FChannel <> | 2022-05-07 21:21:38 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | f7bf818d29393ceaccf4d2906557351fa6a4f49f (patch) | |
tree | 723e542c8cf0db1e7e64923718977138db77b58d /routes/webfinger.go | |
parent | 3c5eebf6275e6d202f8a7b7f027aabcda5c1f332 (diff) |
added error func and general cleanup/organization
Diffstat (limited to 'routes/webfinger.go')
-rw-r--r-- | routes/webfinger.go | 3 |
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 { |