diff options
author | Julio Capote <jcapote@gmail.com> | 2022-12-19 00:45:27 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2022-12-19 00:45:27 +0000 |
commit | 6de1cd00cea3479a7a33418eebbc9399f77178c6 (patch) | |
tree | 580a612f5b9e0b729f63279481bd5c50d133d7d3 /registry | |
parent | bd06b6e688c63ea9eb05e187e18ce535286ca3d4 (diff) | |
download | communique-6de1cd00cea3479a7a33418eebbc9399f77178c6.tar.gz |
start of outbox
Diffstat (limited to 'registry')
-rw-r--r-- | registry/registry.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/registry/registry.go b/registry/registry.go index 442e591..b12b773 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -33,6 +33,14 @@ func (r *Registry) Profile(name string) (map[string]interface{}, error) { return resources.RenderProfile(handler.handlerCfg.Name, r.cfg.Domain) } +func (r *Registry) Outbox(name string) (map[string]interface{}, error) { + handler := r.findByName(name) + if handler == nil { + return nil, nil + } + return resources.RenderOutbox(handler.handlerCfg.Name, r.cfg.Domain) +} + func (r *Registry) WebfingerResource(fqn string) (*resources.WebfingerResource, error) { handler := r.findByFQN(fqn) if handler == nil { |