From a5a1907249d2666966c6c412f8be17e5b2c67e57 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 18 Dec 2022 22:55:34 -0500 Subject: start of outbox page --- registry/registry.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'registry') diff --git a/registry/registry.go b/registry/registry.go index 8d047ff..4dbacc7 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -43,6 +43,14 @@ func (r *Registry) Outbox(name string) (map[string]interface{}, error) { return resources.RenderOutbox(handler.handlerCfg.Name, r.cfg.Domain, r.db) } +func (r *Registry) OutboxPage(name string) (map[string]interface{}, error) { + handler := r.findByName(name) + if handler == nil { + return nil, nil + } + return resources.RenderOutboxPage(handler.handlerCfg.Name, r.cfg.Domain, r.db) +} + func (r *Registry) WebfingerResource(fqn string) (*resources.WebfingerResource, error) { handler := r.findByFQN(fqn) if handler == nil { -- cgit v1.2.3