Changes
1 changed files (+19/-1)
-
-
@@ -5,6 +5,8 @@ import ("fmt" "sort" "time" "github.com/buger/jsonparser" ) // ObjectID designates an unique global identifier.
-
@@ -298,7 +300,7 @@ func ObjectNew(id ObjectID, typ ActivityVocabularyType) *Object {} // GetID returns the GetID corresponding to the GetID object func (o Object) GetID() ObjectID{ func (o Object) GetID() ObjectID { return o.ID }
-
@@ -351,3 +353,19 @@ func recipientsDeduplication(recArgs ...*ObjectsArr) error {} return nil } func (i *ObjectID) MarshalJSON(data []byte) error { *i = ObjectID(data) return nil } func (c *ContentType) MarshalJSON(data []byte) error { *c = ContentType(data) return nil } func (o *Object) MarshalJSON(data []byte) error { val, _, _, _ := jsonparser.Get(data, "ID") o.ID.MarshalJSON(val) return nil }
-