Url Parameter¶
Here we analyze varying url parameters.
The usage examples are inspired by Peertube's usage, see their documentation.
Examples¶
Example 1¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/9IWMh3hYqEU",
"published": "2024-11-22T15:58:40Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/8k02QIg6V1w",
"published": "2024-11-22T15:58:40Z",
"content": "text",
"url": "http://remote.example/objects/123"
}
}
Example 2¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/xmcNmGMSb50",
"published": "2024-11-22T15:58:52Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/2AEYdgjGFik",
"published": "2024-11-22T15:58:52Z",
"content": "text",
"url": [
"http://remote.example/objects/123"
]
}
}
Example 3¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/pjcfPeWonic",
"published": "2024-11-22T15:59:03Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/3Ub_HATr0sQ",
"published": "2024-11-22T15:59:03Z",
"content": "text",
"url": [
"http://remote.example/objects/123",
"http://other.example/objects/123"
]
}
}
Example 4¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/CETb3WbRs2Q",
"published": "2024-11-22T15:59:15Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/Zou2r0UNw00",
"published": "2024-11-22T15:59:15Z",
"content": "text",
"url": [
"http://other.example/objects/123",
"http://remote.example/objects/123"
]
}
}
Example 5¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/5rERaArsRq0",
"published": "2024-11-22T15:59:26Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/Xyic6R4GV10",
"published": "2024-11-22T15:59:26Z",
"content": "text",
"url": {
"type": "Link",
"mediaType": "text/html",
"href": "http://html.example/objects/123"
}
}
}
Example 6¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/-OdvXXwiSCA",
"published": "2024-11-22T15:59:37Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/8pxTJCILObY",
"published": "2024-11-22T15:59:37Z",
"content": "text",
"url": {
"type": "Link",
"mediaType": "video/mp4",
"href": "http://video.example/objects/123"
}
}
}
Example 7¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/onriMBeFItM",
"published": "2024-11-22T15:59:49Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/agtNbdYCLjw",
"published": "2024-11-22T15:59:49Z",
"content": "text",
"url": [
"http://remote.example/objects/123",
{
"type": "Link",
"mediaType": "text/html",
"href": "http://html.example/objects/123"
}
]
}
}
Example 8¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/TCscE9HaI04",
"published": "2024-11-22T16:00:00Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/yiF5BJVh91M",
"published": "2024-11-22T16:00:00Z",
"content": "text",
"url": [
{
"type": "Link",
"mediaType": "text/html",
"href": "http://html.example/objects/123"
},
"http://remote.example/objects/123"
]
}
}
Example 9¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/XO6gpsdhl30",
"published": "2024-11-22T16:00:12Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/Dn-rbi41qeU",
"published": "2024-11-22T16:00:12Z",
"content": "text",
"url": [
{
"type": "Link",
"mediaType": "text/html",
"href": "http://html.example/objects/123"
},
{
"type": "Link",
"mediaType": "video/mp4",
"href": "http://video.example/objects/123"
}
]
}
}
Example 10¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/Nm2-CO4OogM",
"published": "2024-11-22T16:00:23Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/L56Lvs9kyNM",
"published": "2024-11-22T16:00:23Z",
"content": "text",
"url": [
{
"type": "Link",
"mediaType": "video/mp4",
"href": "http://video.example/objects/123"
},
{
"type": "Link",
"mediaType": "text/html",
"href": "http://html.example/objects/123"
}
]
}
}
Example 11¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/7TveizM1pSk",
"published": "2024-11-22T16:00:34Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/yUSuv5mZf-0",
"published": "2024-11-22T16:00:34Z",
"content": "text",
"url": [
{
"type": "Link",
"mediaType": "video/mp4",
"href": "http://video.example/objects/123"
},
{
"type": "Link",
"mediaType": "text/html",
"href": "http://html.example/objects/123",
"rel": "canonical"
}
]
}
}
Example 12¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://sharkey/users/a0whodv02hfc0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/USXjxvh5Sz0",
"published": "2024-11-22T16:00:46Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a0whodv02hfc0001"
],
"id": "http://pasture-one-actor/actor/TthKQwoN0Qg",
"published": "2024-11-22T16:00:46Z",
"content": "text",
"url": {
"href": "https://notype.example/"
}
}
}