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 /http/router.go | |
parent | 9027aba0621018caf177611d9105213645efe491 (diff) | |
download | communique-4f42b00ec18cfdf3f97527a6fe91babc03f118aa.tar.gz |
return ordered collection for outbox instead of page
Diffstat (limited to 'http/router.go')
-rw-r--r-- | http/router.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/http/router.go b/http/router.go index d5d0de5..a0cc351 100644 --- a/http/router.go +++ b/http/router.go @@ -82,13 +82,7 @@ func (s *Router) Start(zapWriter io.Writer) { // Actor Outbox router.GET("/actors/:actor/outbox", func(c *gin.Context) { actorParam := c.Param("actor") - var resource map[string]interface{} - var err error - if c.Query("page") == "true" { - resource, err = s.registry.OutboxCollection(actorParam) - } else { - resource, err = s.registry.Outbox(actorParam) - } + resource, err := s.registry.OutboxCollection(actorParam) render(c, resource, err) }) |