diff options
| author | 2022-06-08 20:22:49 +0200 | |
|---|---|---|
| committer | 2022-06-08 20:22:49 +0200 | |
| commit | 6f6e89e2715c9ecbadda6b8dbe5227995348dae8 (patch) | |
| tree | da867633cdd72981460baf76615a81ab3390ce9c /internal/api/client/timeline | |
| parent | [frontend] linkify header mascot+title (#633) (diff) | |
| download | gotosocial-6f6e89e2715c9ecbadda6b8dbe5227995348dae8.tar.xz | |
[feature] Add paging via `Link` header for notifications and account statuses (#629)
* test link headers
* page get account statuses properly
* page get notifications
* add util func for packaging timeline responses
* return timelined stuff from accountstatusesget
* rename timeline response
* use new convenience function
* go fmt
Diffstat (limited to 'internal/api/client/timeline')
| -rw-r--r-- | internal/api/client/timeline/home.go | 2 | ||||
| -rw-r--r-- | internal/api/client/timeline/public.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/client/timeline/home.go b/internal/api/client/timeline/home.go index dfe1a0db0..47bc2943e 100644 --- a/internal/api/client/timeline/home.go +++ b/internal/api/client/timeline/home.go @@ -171,5 +171,5 @@ func (m *Module) HomeTimelineGETHandler(c *gin.Context) { if resp.LinkHeader != "" { c.Header("Link", resp.LinkHeader) } - c.JSON(http.StatusOK, resp.Statuses) + c.JSON(http.StatusOK, resp.Items) } diff --git a/internal/api/client/timeline/public.go b/internal/api/client/timeline/public.go index 075d9267c..06da6e947 100644 --- a/internal/api/client/timeline/public.go +++ b/internal/api/client/timeline/public.go @@ -171,5 +171,5 @@ func (m *Module) PublicTimelineGETHandler(c *gin.Context) { if resp.LinkHeader != "" { c.Header("Link", resp.LinkHeader) } - c.JSON(http.StatusOK, resp.Statuses) + c.JSON(http.StatusOK, resp.Items) } |
