diff options
Diffstat (limited to 'internal/api/model')
-rw-r--r-- | internal/api/model/paging.go (renamed from internal/api/model/timeline.go) | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/internal/api/model/timeline.go b/internal/api/model/paging.go index 4c9c78a88..195f318c8 100644 --- a/internal/api/model/timeline.go +++ b/internal/api/model/paging.go @@ -18,12 +18,10 @@ package model -import "github.com/superseriousbusiness/gotosocial/internal/timeline" - -// TimelineResponse wraps a slice of timelineables, ready to be serialized, along with the Link -// header for the previous and next queries, to be returned to the client. -type TimelineResponse struct { - Items []timeline.Timelineable +// PageableResponse wraps a slice of items, ready to be serialized, along with the Link +// header for the previous and next queries / pages, to be returned to the client. +type PageableResponse struct { + Items []interface{} LinkHeader string NextLink string PrevLink string |