Fix next link on timeline page
authorr <r@freesoftwareextremist.com>
Sun, 27 Sep 2020 10:11:18 +0000 (10:11 +0000)
committerr <r@freesoftwareextremist.com>
Sun, 27 Sep 2020 10:11:18 +0000 (10:11 +0000)
service/service.go

index 9190ca4a73b12f58964322d4b38f4e2c11f8b966..c04557ea6f72fa9dc26b808be710e79f4ab51cb0 100644 (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)
        }