From f7bf818d29393ceaccf4d2906557351fa6a4f49f Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 7 May 2022 21:21:38 -0700 Subject: added error func and general cleanup/organization --- webfinger/webfinger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webfinger') diff --git a/webfinger/webfinger.go b/webfinger/webfinger.go index bcbe16a..45650ea 100644 --- a/webfinger/webfinger.go +++ b/webfinger/webfinger.go @@ -33,7 +33,7 @@ func GetActor(id string) (activitypub.Actor, error) { return respActor, nil } - actor, instance := activitypub.GetActorInstance(id) + actor, instance := activitypub.GetActorAndInstance(id) if ActorCache[actor+"@"+instance].Id != "" { respActor = ActorCache[actor+"@"+instance] @@ -70,7 +70,7 @@ func GetActor(id string) (activitypub.Actor, error) { func FingerActor(path string) (activitypub.Actor, error) { var nActor activitypub.Actor - actor, instance := activitypub.GetActorInstance(path) + actor, instance := activitypub.GetActorAndInstance(path) if actor == "" && instance == "" { return nActor, nil -- cgit v1.2.3