Fix next link on timeline page

This commit is contained in:
r 2020-09-27 10:11:18 +00:00
parent 2b1c703b6c
commit 9c5cb289f9

View file

@ -273,7 +273,7 @@ func (svc *service) ServeTimelinePage(c *model.Client, tType string,
} }
} }
if len(pg.MaxID) > 0 { if len(pg.MaxID) > 0 && len(statuses) == 20 {
nextLink = fmt.Sprintf("/timeline/%s?max_id=%s", tType, pg.MaxID) nextLink = fmt.Sprintf("/timeline/%s?max_id=%s", tType, pg.MaxID)
} }