MightyNetwork::Doc::ActivityPub::Activity::Create
Activity indicating that the actor has created the object.
See https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create for details.
Activity’s actor
refer to the actor who makes the action.
Activity’s object
refer to the object that is the subject of the action.
See https://www.w3.org/TR/activitystreams-vocabulary/#h-object-types for available objects.
Example: https://example.org/users/narf Create a Note.
For our example above, the activity would be like this.
{
"@context" : "https://www.w3.org/ns/activitystreams",
"id" : "https://example.org/users/narf/note/5b44c2974a67a67eec472d82/activity",
"type" : "Create",
"actor" : "https://example.org/users/narf",
"object": {
"type": "Note",
"id" : "https://example.org/users/narf/note/5b44c2974a67a67eec472d82",
"to" : [ "https://www.w3.org/ns/activitystreams#Public" ],
"cc" : [ "https://example.org/users/narf/followers" ],
"attributedTo":"https://example.org/users/narf",
"content": "Hello world !",
"published":"2018-07-10T14:28:39.889Z",
},
"published" : "2018-07-10T14:28:39.889Z"
}
MightyNetwork::Doc, MightyNetwork::Doc::ActivityPub, MightyNetwork::Doc::ActivityPub::Actor, MightyNetwork::Doc::ActivityPub::Activity, object, MightyNetwork::Doc::ActivityPub::Note, https://www.w3.org/TR/activitystreams-vocabulary/#h-activity-types, https://www.w3.org/TR/activitystreams-vocabulary/#h-object-types