mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:42:25 -05:00
remove comments for repeat code
This commit is contained in:
parent
8dfce9fa84
commit
be75246307
1 changed files with 0 additions and 11 deletions
11
internal/cache/timeline/status.go
vendored
11
internal/cache/timeline/status.go
vendored
|
|
@ -522,20 +522,9 @@ func (t *StatusTimeline) Load(
|
||||||
func LoadStatusTimeline(
|
func LoadStatusTimeline(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
page *paging.Page,
|
page *paging.Page,
|
||||||
|
|
||||||
// loadPage should load the timeline of given page for cache hydration.
|
|
||||||
loadPage func(page *paging.Page) (statuses []*gtsmodel.Status, err error),
|
loadPage func(page *paging.Page) (statuses []*gtsmodel.Status, err error),
|
||||||
|
|
||||||
// loadIDs should load status models with given IDs, this is used
|
|
||||||
// to load status models of already cached entries in the timeline.
|
|
||||||
loadIDs func(ids []string) (statuses []*gtsmodel.Status, err error),
|
loadIDs func(ids []string) (statuses []*gtsmodel.Status, err error),
|
||||||
|
|
||||||
// filter can be used to perform filtering of returned
|
|
||||||
// statuses BEFORE insert into cache. i.e. this will effect
|
|
||||||
// what actually gets stored in the timeline cache.
|
|
||||||
filter func(each *gtsmodel.Status) (delete bool, err error),
|
filter func(each *gtsmodel.Status) (delete bool, err error),
|
||||||
|
|
||||||
// prepareAPI should prepare internal status model to frontend API model.
|
|
||||||
prepareAPI func(status *gtsmodel.Status) (apiStatus *apimodel.Status, err error),
|
prepareAPI func(status *gtsmodel.Status) (apiStatus *apimodel.Status, err error),
|
||||||
) (
|
) (
|
||||||
[]*apimodel.Status,
|
[]*apimodel.Status,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue