diff --git a/src/website/projects.go b/src/website/projects.go index 64501267..f97577d0 100644 --- a/src/website/projects.go +++ b/src/website/projects.go @@ -308,13 +308,12 @@ func ProjectHomepage(c *RequestContext) ResponseData { templateData.RecentActivity, err = FetchTimeline(c, c.Conn, c.CurrentUser, lineageBuilder, hmndata.TimelineQuery{ ProjectIDs: []int{c.CurrentProject.ID}, + Limit: maxRecentActivity, }) if err != nil { return c.ErrorResponse(http.StatusInternalServerError, err) } - templateData.RecentActivity = utils.ClampSlice(templateData.RecentActivity, maxRecentActivity) - followUrl := "" following := false if c.CurrentUser != nil {