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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/Wu7EZQm1Bug",
"published": "2024-12-02T09:51:35Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/-u8K97FhDq0",
"published": "2024-12-02T09:51:35Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/aU0bzlL4vI0",
"published": "2024-12-02T09:51:47Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/ZcQtR_NkuLw",
"published": "2024-12-02T09:51:47Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/v4gCm8kzJDw",
"published": "2024-12-02T09:51:58Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/yD826qI0odU",
"published": "2024-12-02T09:51:58Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/ABswwBdA12c",
"published": "2024-12-02T09:52:09Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/aJHvXg_muXI",
"published": "2024-12-02T09:52:09Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/28T0WpFhDBc",
"published": "2024-12-02T09:52:21Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/3gNtIXhcvZs",
"published": "2024-12-02T09:52:21Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/G8AMS7Vn3yk",
"published": "2024-12-02T09:52:32Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/vGmqGn-I5_Y",
"published": "2024-12-02T09:52:32Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/WyUeMGstkvk",
"published": "2024-12-02T09:52:43Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/OEcBiY1OTo0",
"published": "2024-12-02T09:52:43Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/mLAsZOMx0Ts",
"published": "2024-12-02T09:52:55Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/_KgrgcCDSgw",
"published": "2024-12-02T09:52:55Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/aoQXDtrleAk",
"published": "2024-12-02T09:53:06Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/D6fsUTLgm2s",
"published": "2024-12-02T09:53:06Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/H9rVwAiotx4",
"published": "2024-12-02T09:53:17Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/L4eINI_Di2E",
"published": "2024-12-02T09:53:17Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/8H1HeTa5WVI",
"published": "2024-12-02T09:53:29Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/LxnEOgBtLoQ",
"published": "2024-12-02T09:53:29Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/qpRF4u4oMq0",
"published": "2024-12-02T09:53:40Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://sharkey/users/a1aeyjgdl0e10001"
],
"id": "http://pasture-one-actor/actor/doA4OKKi1z4",
"published": "2024-12-02T09:53:40Z",
"content": "text",
"url": {
"href": "https://notype.example/"
}
}
}