MightyNetwork :: Doc :: ActivityPub :: Activity :: Create (source, CPAN)

CONTENTS

NAME

MightyNetwork::Doc::ActivityPub::Activity::Create

DESCRIPTION

Activity indicating that the actor has created the object.

See https://www.w3.org/TR/activitystreams-vocabulary/#dfn-create for details.

ACTOR

Activity’s actor refer to the actor who makes the action.

OBJECT

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.

SUMMARY

Example: https://example.org/users/narf Create a Note.

JSON-LD REPRESENTATION

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"
}

SEE ALSO

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