summaryrefslogtreecommitdiff
path: root/internal/api/model/timeline.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model/timeline.go')
-rw-r--r--internal/api/model/timeline.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/api/model/timeline.go b/internal/api/model/timeline.go
index 66a5263b8..71d839ed2 100644
--- a/internal/api/model/timeline.go
+++ b/internal/api/model/timeline.go
@@ -18,9 +18,11 @@
package model
-// StatusTimelineResponse wraps a slice of statuses, ready to be serialized, along with the Link
+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 StatusTimelineResponse struct {
- Statuses []*Status
+type TimelineResponse struct {
+ Items []timeline.Timelineable
LinkHeader string
}