Small fixes

This commit is contained in:
Marius Orcsik 2017-09-12 17:46:43 +02:00
parent b57f8c5e42
commit 5c9d5bdd84
No known key found for this signature in database
GPG key ID: C36D1EBE93A6EEAE
2 changed files with 5 additions and 2 deletions

View file

@ -71,7 +71,10 @@ var validActivityTypes = [...]string{
// about the kind of action being taken.
type Activity struct {
*IntransitiveActivity
// @see activitypub.Object
// When used within an Activity, describes the direct object of the activity.
// For instance, in the activity "John added a movie to his wishlist",
// the object of the activity is the movie added.
// When used within a Relationship describes the entity to which the subject is related.
Object ObjectOrLink `jsonld:"object,omitempty"`
}

View file

@ -78,7 +78,7 @@ type Object struct {
*BaseObject
// Identifies a resource attached or related to an object that potentially requires special handling.
// The intent is to provide a model that is at least semantically similar to attachments in email.
Attachment ObjectOrLink `jsonld:"Attachment,omitempty"`
Attachment ObjectOrLink `jsonld:"attachment,omitempty"`
// Identifies one or more entities to which this object is attributed. The attributed entities might not be Actors.
// For instance, an object might be attributed to the completion of another activity.
AttributedTo ObjectOrLink `jsonld:"attributedTo,omitempty"`