From 4f8325f5df55628544f13937975f38c6ef5d17ab Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 18 Dec 2022 18:51:00 -0500 Subject: switch to using go-fed for activitystreams --- registry/registry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'registry') diff --git a/registry/registry.go b/registry/registry.go index 7091819..936ff54 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -29,10 +29,10 @@ func NewRegistry(cfg config.Config) *Registry { } // TODO should probably be getprofilebyname -func (r *Registry) LookupByName(name string) *resources.Profile { +func (r *Registry) LookupByName(name string) (map[string]interface{}, error) { fqdn := fmt.Sprintf("acct:%s@%s", name, r.cfg.Domain) if r.LookupResource(fqdn) == nil { - return nil + return nil, nil } return resources.RenderProfile(name, r.cfg.Domain) } -- cgit v1.2.3