From 9fcbb4f4435f06c0179b9bf3cde8c2d138145310 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 12 Jan 2020 19:18:50 +0100 Subject: [PATCH] Fix pagination Signed-off-by: Knut Ahlers --- storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage.go b/storage.go index 8956c72..543d5c8 100644 --- a/storage.go +++ b/storage.go @@ -89,7 +89,7 @@ func (s *store) GetTweetPage(page int) []tweet { num = len(s.s) - start } - return s.s[start:num] + return s.s[start : start+num] } // GetTweetsSince returns all tweets newer than the given tweet ID