diff options
Diffstat (limited to 'registry/registry.go')
-rw-r--r-- | registry/registry.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/registry/registry.go b/registry/registry.go index 04c4565..fc0e9d9 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -26,8 +26,13 @@ func NewRegistry(cfg config.Config) *Registry { return ® } -func (r *Registry) LookupResource(name string) *webfinger.Resource { - handler, ok := r.handlerMap[name] +func (r *Registry) LookupByName(name string) *webfinger.Resource { + fqdn := fmt.Sprintf("acct:%s@%s", name, r.cfg.Domain) + return r.LookupResource(fqdn) +} + +func (r *Registry) LookupResource(fqdn string) *webfinger.Resource { + handler, ok := r.handlerMap[fqdn] if !ok { return nil } |