favourites GET implementation

This commit is contained in:
tsmethurst 2021-07-09 18:25:05 +02:00
commit 53c0bfbec3
16 changed files with 491 additions and 127 deletions

View file

@ -94,6 +94,8 @@ func (m *Module) HomeTimelineGETHandler(c *gin.Context) {
return
}
c.Header("Link", resp.LinkHeader)
if resp.LinkHeader != "" {
c.Header("Link", resp.LinkHeader)
}
c.JSON(http.StatusOK, resp.Statuses)
}