From e373e59418f04e211171af532c4b0b41e18bf274 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 11 Aug 2018 10:52:24 -0400 Subject: [PATCH] Allow any type in OrderedCollectionPage.OrderedItems --- activitystreams/data.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/activitystreams/data.go b/activitystreams/data.go index 4197171..5c7cee3 100644 --- a/activitystreams/data.go +++ b/activitystreams/data.go @@ -51,11 +51,11 @@ func NewOrderedCollection(accountRoot, collType string, items int) *OrderedColle type OrderedCollectionPage struct { BaseObject - TotalItems int `json:"totalItems"` - PartOf string `json:"partOf"` - Next string `json:"next,omitempty"` - Prev string `json:"prev,omitempty"` - OrderedItems []Activity `json:"orderedItems"` + TotalItems int `json:"totalItems"` + PartOf string `json:"partOf"` + Next string `json:"next,omitempty"` + Prev string `json:"prev,omitempty"` + OrderedItems []interface{} `json:"orderedItems,omitempty"` } func NewOrderedCollectionPage(accountRoot, collType string, items, page int) *OrderedCollectionPage {