aboutsummaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-19 03:55:34 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-19 03:55:34 +0000
commita5a1907249d2666966c6c412f8be17e5b2c67e57 (patch)
tree615929dc0419935664b15b4f63235e46cc1e86fc /registry
parent3761f85966a554cb750809da21995354fb9f9ceb (diff)
downloadcommunique-a5a1907249d2666966c6c412f8be17e5b2c67e57.tar.gz
start of outbox page
Diffstat (limited to 'registry')
-rw-r--r--registry/registry.go8
1 files changed, 8 insertions, 0 deletions
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 {