summaryrefslogtreecommitdiff
path: root/internal/api/client/timeline/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/timeline/home.go')
-rw-r--r--internal/api/client/timeline/home.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/api/client/timeline/home.go b/internal/api/client/timeline/home.go
index 977a464a0..86606a0dd 100644
--- a/internal/api/client/timeline/home.go
+++ b/internal/api/client/timeline/home.go
@@ -87,12 +87,13 @@ func (m *Module) HomeTimelineGETHandler(c *gin.Context) {
local = i
}
- statuses, errWithCode := m.processor.HomeTimelineGet(authed, maxID, sinceID, minID, limit, local)
+ resp, errWithCode := m.processor.HomeTimelineGet(authed, maxID, sinceID, minID, limit, local)
if errWithCode != nil {
- l.Debugf("error from processor account statuses get: %s", errWithCode)
+ l.Debugf("error from processor HomeTimelineGet: %s", errWithCode)
c.JSON(errWithCode.Code(), gin.H{"error": errWithCode.Safe()})
return
}
- c.JSON(http.StatusOK, statuses)
+ c.Header("Link", resp.LinkHeader)
+ c.JSON(http.StatusOK, resp.Statuses)
}