mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 05:27:29 -06:00
start adding preloading support
This commit is contained in:
parent
6210ea33ee
commit
b3c9bfde18
7 changed files with 255 additions and 79 deletions
9
internal/cache/timeline/timeline.go
vendored
9
internal/cache/timeline/timeline.go
vendored
|
|
@ -18,10 +18,19 @@
|
|||
package timeline
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"codeberg.org/gruf/go-structr"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/id"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/paging"
|
||||
)
|
||||
|
||||
// plus24hULID returns a ULID for now+24h.
|
||||
func plus24hULID() string {
|
||||
t := time.Now().Add(24 * time.Hour)
|
||||
return id.NewULIDFromTime(t)
|
||||
}
|
||||
|
||||
// nextPageParams gets the next set of paging
|
||||
// parameters to use based on the current set,
|
||||
// and the next set of lo / hi values. This will
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue