From f0efb48bbd45ffd149cd9eb0603f7916ab9d8b67 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 18 Dec 2022 17:18:42 -0500 Subject: start of profiles --- registry/registry.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'registry') 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 { -- cgit v1.2.3