summaryrefslogtreecommitdiff
path: root/internal/api/client/timeline/home.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-07-09 18:32:48 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-09 18:32:48 +0200
commitc7da64922f8b41daaee1cb8fc2961f7fa1336737 (patch)
treeb1f9c946bd223267f87f2a77a7455974d8d5e5e9 /internal/api/client/timeline/home.go
parentDocs (#94) (diff)
downloadgotosocial-c7da64922f8b41daaee1cb8fc2961f7fa1336737.tar.xz
favourites GET implementation (#95)
Diffstat (limited to 'internal/api/client/timeline/home.go')
-rw-r--r--internal/api/client/timeline/home.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/api/client/timeline/home.go b/internal/api/client/timeline/home.go
index 86606a0dd..cb72895f9 100644
--- a/internal/api/client/timeline/home.go
+++ b/internal/api/client/timeline/home.go
@@ -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)
}