diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-02 18:27:18 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-02 18:27:18 +0000 |
commit | 4f42b00ec18cfdf3f97527a6fe91babc03f118aa (patch) | |
tree | 2fdd7a5fe227846a1b1f3015dcd25cdbdef68d70 /registry/registry.go | |
parent | 9027aba0621018caf177611d9105213645efe491 (diff) | |
download | communique-4f42b00ec18cfdf3f97527a6fe91babc03f118aa.tar.gz |
return ordered collection for outbox instead of page
Diffstat (limited to 'registry/registry.go')
-rw-r--r-- | registry/registry.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/registry/registry.go b/registry/registry.go index 451704e..16ae828 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -40,19 +40,6 @@ func (r *Registry) Actor(name string) (map[string]interface{}, error) { return views.RenderActor(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 - } - aso := models.NewOutboxItem(handler.handlerCfg) - totalItems, err := r.persister.Count(aso) - if err != nil { - return nil, err - } - return views.RenderOutbox(handler.handlerCfg.Name, r.cfg.Domain, totalItems) -} - func (r *Registry) OutboxCollection(name string) (map[string]interface{}, error) { handler := r.findByName(name) if handler == nil { |