ref: f760e7a913ad094c1e73b4564752b2db43acab31
parent: ae797a6ea55f56aef33514eb25af7b4bb2e41bb3
author: penny <penny@limitedideas.org>
date: Tue Oct 21 08:56:15 EDT 2025
stop loading missed posts more opportunistically
--- a/status.go
+++ b/status.go
@@ -11,7 +11,7 @@
func (hc *Hellclient) GetStatusesSince(ID mastodon.ID, GetTimeline func(ctx context.Context, pg *mastodon.Pagination) ([]*mastodon.Status, error)) ([]*mastodon.Status, error) {- page := &mastodon.Pagination{MinID: ID}+ page := &mastodon.Pagination{MinID: ID, Limit: 40}var err error
var statuses []*mastodon.Status
@@ -37,6 +37,10 @@
page.MaxID = ""
fmt.Printf("Loaded %v statuses....", len(statuses)) if len(statuses) >= maxUnreadStatusesToLoad {+ break
+ }
+ //We ask for 40 results, if there were less than 40, there's no more to load
+ if len(statusbatch) < 40 {break
}
}
--
⑨