Changes
2 changed files (+11/-7)
-
-
@@ -50,15 +50,9 @@ type actor struct {// A link to an [ActivityStreams] collection of the actors that follow this actor; // see 5.3 Followers Collection. Followers as.Item `jsonld:"followers,omitempty"` // A link to an [ActivityStreams] collection of the actors that follow this actor; // A link to an [ActivityStreams] collection of objects this actor has liked; // see 5.5 Liked Collection. Liked as.Item `jsonld:"liked,omitempty"` // A link to an [ActivityStreams] collection of the actors that follow this actor; // see 5.7 Likes Collection. Likes as.Item `jsonld:"likes,omitempty"` // A link to an [ActivityStreams] collection of the actors that follow this actor; // see 5.8 Shares Collection Shares as.Item `jsonld:"shares,omitempty"` // A short username which may be used to refer to the actor, with no uniqueness guarantees. PreferredUsername as.NaturalLanguageValues `jsonld:"preferredUsername,omitempty,collapsible"` // A json object which maps additional (typically server/domain-wide) endpoints which may be useful either
-
-
-
@@ -20,6 +20,14 @@ type Parent = Object// Object type Object struct { as.Parent // This is a list of all Like activities with this object as the object property, added as a side effect. // The likes collection MUST be either an OrderedCollection or a Collection and MAY be filtered on privileges // of an authenticated user or as appropriate when no authentication is given. Likes as.Item `jsonld:"likes,omitempty"` // This is a list of all Announce activities with this object as the object property, added as a side effect. // The shares collection MUST be either an OrderedCollection or a Collection and MAY be filtered on privileges // of an authenticated user or as appropriate when no authentication is given. Shares as.Item `jsonld:"shares,omitempty"` // Source property is intended to convey some sort of source from which the content markup was derived, // as a form of provenance, or to support future editing by clients. // In general, clients do the conversion from source to content, not the other way around.
-
@@ -52,6 +60,8 @@ func (o *Object) UnmarshalJSON(data []byte) error {as.ItemTyperFunc = JSONGetItemByType } o.Parent.UnmarshalJSON(data) o.Likes = as.JSONGetItem(data, "likes") o.Shares = as.JSONGetItem(data, "shares") o.Source = GetAPSource(data) return nil }
-