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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/X9gUwB1nGDY",
"published": "2024-12-02T19:35:50Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/83a2lUfiCj0",
"published": "2024-12-02T19:35:50Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/upoyaqAnB8I",
"published": "2024-12-02T19:36:02Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/SKhindyIAxA",
"published": "2024-12-02T19:36:02Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/VvSwPDfzk9U",
"published": "2024-12-02T19:36:13Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/KQksX2TkZRA",
"published": "2024-12-02T19:36:13Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/k23HsMwpadQ",
"published": "2024-12-02T19:36:24Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/Q2LBZ8YMCT8",
"published": "2024-12-02T19:36:24Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/XqIlEh4NeO0",
"published": "2024-12-02T19:36:36Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/bTy_leaicGs",
"published": "2024-12-02T19:36:36Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/uY-27M-rcu0",
"published": "2024-12-02T19:36:47Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/Jr0fj2lmqLY",
"published": "2024-12-02T19:36:47Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/eR_ho6iQepE",
"published": "2024-12-02T19:36:58Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/9pzXHwadOss",
"published": "2024-12-02T19:36:58Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/47kfF9fOoyQ",
"published": "2024-12-02T19:37:09Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/L2ePZDpZ8EY",
"published": "2024-12-02T19:37:09Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/nLQiktfQ1yI",
"published": "2024-12-02T19:37:20Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/FCjx1iKEW40",
"published": "2024-12-02T19:37:20Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/FpYz3V65JyY",
"published": "2024-12-02T19:37:31Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/wC88OcYV0ZM",
"published": "2024-12-02T19:37:31Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/k99SKQINHds",
"published": "2024-12-02T19:37:42Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/9jJEh5om5ok",
"published": "2024-12-02T19:37:42Z",
"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/a1aztvmgxl2r0001",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/actor/C2VlaHoBLXs",
"published": "2024-12-02T19:37:54Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aztvmgxl2r0001"
],
"id": "http://pasture-one-actor/actor/3r-GxZJylbs",
"published": "2024-12-02T19:37:54Z",
"content": "text",
"url": {
"href": "https://notype.example/"
}
}
}