Activity Stream Type: Profile
Profiles are used to provide additional user information display.
Property | Base Spec | Required | Description | Restrictions |
---|---|---|---|---|
@context | Activity Streams 2.0 | YES | JSON-LD @context | MUST be set to https://www.w3.org/ns/activitystreams |
type | Activity Vocabulary 2.0 | YES | Identifies the type of the object | MUST be set to Profile |
name | Activity Vocabulary 2.0 | no | The display name for the profile | |
icon | Activity Vocabulary 2.0 | no | An array of avatars of the profile | MUST follow Image Link Type |
summary | Activity Vocabulary 2.0 | no | Used as a plain text biography of the profile | |
published | Activity Vocabulary 2.0 | no | The time of publishing | MUST be ISO8601 |
location | Activity Vocabulary 2.0 | no | For location | MUST follow Location Type |
tag | Activity Vocabulary 2.0 | no | For tags or mentions | MUST follow Tag Type |
Examples
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Profile",
"name": "John Doe",
"summary": "John Doe is actually a small kitten. See pfp.",
"icon": [
{
"type": "Link",
"href": "https://placekitten.com/256/256",
"mediaType": "image/jpeg",
"width": "256",
"height": "256",
"hash": [
"QmVmUqGYtHcVgpTFR64bHNcLGGFEeWxmUP6pV2C2RbWpKT"
]
},
{
"type": "Link",
"href": "https://placekitten.com/64/64",
"mediaType": "image/jpeg",
"width": "64",
"height": "64",
"hash": [
"QmcAh1rov5GcddekCffGeRnaSyiji6ATmfGWpxXYJHgJZx"
]
}
],
"published": "1970-01-01T00:00:00+00:00"
}