From 4f42b00ec18cfdf3f97527a6fe91babc03f118aa Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Mon, 2 Jan 2023 13:27:18 -0500 Subject: return ordered collection for outbox instead of page --- registry/registry.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'registry') 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 { -- cgit v1.2.3