How to implement a basic ActivityPub server?
blog.joinmastodon.org/2018/06/
how-to-implement-a-basic-activitypub-server/
{
"@context": "https://www.w3.org/ns/activitystreams",
"id": "https://my-example.com/hello-world",
"type": "Create",
"actor": "https://my-example.com/actor",
"object": {
"id": "https://my-example.com/hello-world",
"type": "Note",
"published": "2023-04-12T10:08:46Z",
"attributedTo": "https://my-example.com/actor",
"inReplyTo": "https://my-example/@bob/100254678717223630",
"content": "
Hello world
",
"to": "https://www.w3.org/ns/activitystreams#Public"
}
}
The message: a “note”
creation activity
JSON-LD syntax &
ActivityStream vocabulary
Actor’s URL
Note creation
Can reply to
another message
Lightweight HTML with
Microformat classes