aboutsummaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-18 22:18:42 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-18 22:18:42 +0000
commitf0efb48bbd45ffd149cd9eb0603f7916ab9d8b67 (patch)
tree70ec7746b861d2f8791a4919a1247610605be211 /registry/registry.go
parent20faf99a2076905159a6d623a3f59f5eca1f808b (diff)
downloadcommunique-f0efb48bbd45ffd149cd9eb0603f7916ab9d8b67.tar.gz
start of profiles
Diffstat (limited to 'registry/registry.go')
-rw-r--r--registry/registry.go3
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 {