Changes
2 changed files (+10/-0)
-
-
@@ -3,6 +3,7 @@ package activitypubimport ( "errors" "time" "unsafe" ) const CollectionOfItems ActivityVocabularyType = "ItemCollection"
-
@@ -319,6 +320,10 @@ func ToCollection(it Item) (*Collection, error) {return i, nil case Collection: return &i, nil case *CollectionPage: return (*Collection)(unsafe.Pointer(i)), nil case CollectionPage: return (*Collection)(unsafe.Pointer(&i)), nil } return nil, errors.New("unable to convert to collection") }
-
-
-
@@ -3,6 +3,7 @@ package activitypubimport ( "errors" "time" "unsafe" ) // OrderedCollection is a subtype of Collection in which members of the logical
-
@@ -262,6 +263,10 @@ func ToOrderedCollection(it Item) (*OrderedCollection, error) {return i, nil case OrderedCollection: return &i, nil case *OrderedCollectionPage: return (*OrderedCollection)(unsafe.Pointer(i)), nil case OrderedCollectionPage: return (*OrderedCollection)(unsafe.Pointer(&i)), nil } return nil, errors.New("unable to convert to ordered collection") }
-