diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-18 22:18:42 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-18 22:18:42 +0000 |
commit | f0efb48bbd45ffd149cd9eb0603f7916ab9d8b67 (patch) | |
tree | 70ec7746b861d2f8791a4919a1247610605be211 /registry | |
parent | 20faf99a2076905159a6d623a3f59f5eca1f808b (diff) | |
download | communique-f0efb48bbd45ffd149cd9eb0603f7916ab9d8b67.tar.gz |
start of profiles
Diffstat (limited to 'registry')
-rw-r--r-- | registry/registry.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go index e8ed66c..7091819 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -34,9 +34,10 @@ func (r *Registry) LookupByName(name string) *resources.Profile { if r.LookupResource(fqdn) == nil { return nil } - return resources.RenderProfile() + return resources.RenderProfile(name, r.cfg.Domain) } +// TODO extract an existsbyname existsbyfqdn from this func (r *Registry) LookupResource(fqdn string) *resources.WebfingerResource { handler, ok := r.handlerMap[fqdn] if !ok { |