diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-18 23:51:00 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-18 23:51:00 +0000 |
commit | 4f8325f5df55628544f13937975f38c6ef5d17ab (patch) | |
tree | 9e977ba3b3edbcf3cb900442dbd5c5659d39a4a3 /registry/registry.go | |
parent | f0efb48bbd45ffd149cd9eb0603f7916ab9d8b67 (diff) | |
download | communique-4f8325f5df55628544f13937975f38c6ef5d17ab.tar.gz |
switch to using go-fed for activitystreams
Diffstat (limited to '')
-rw-r--r-- | registry/registry.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |