summaryrefslogtreecommitdiff
path: root/internal/timeline/timeline.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-08-10 16:56:59 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-10 16:56:59 +0200
commit6acd410426f2f8941a0dbec4bfe07c2a94ce62b7 (patch)
treedbae658794d294c845640b9244b061cbbf11d94f /internal/timeline/timeline.go
parentroll back to sha256 for signatures (diff)
downloadgotosocial-6acd410426f2f8941a0dbec4bfe07c2a94ce62b7.tar.xz
Bugfixerino (#133)
* fix some lil bugs * fmt, lint
Diffstat (limited to 'internal/timeline/timeline.go')
-rw-r--r--internal/timeline/timeline.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/timeline/timeline.go b/internal/timeline/timeline.go
index fe811a303..20015a745 100644
--- a/internal/timeline/timeline.go
+++ b/internal/timeline/timeline.go
@@ -45,12 +45,12 @@ type Timeline interface {
// This will NOT include the status with the given ID.
//
// This corresponds to an api call to /timelines/home?max_id=WHATEVER
- GetXBehindID(amount int, fromID string) ([]*apimodel.Status, error)
+ GetXBehindID(amount int, fromID string, attempts *int) ([]*apimodel.Status, error)
// GetXBeforeID returns x amount of posts up to the given id, from newest to oldest.
// This will NOT include the status with the given ID.
//
// This corresponds to an api call to /timelines/home?since_id=WHATEVER
- GetXBeforeID(amount int, sinceID string, startFromTop bool) ([]*apimodel.Status, error)
+ GetXBeforeID(amount int, sinceID string, startFromTop bool, attempts *int) ([]*apimodel.Status, error)
// GetXBetweenID returns x amount of posts from the given maxID, up to the given id, from newest to oldest.
// This will NOT include the status with the given IDs.
//