Skip to content

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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/yxScammk4ho",
  "published": "2024-12-04T18:53:12Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/JWwWLlT2uO8",
    "published": "2024-12-04T18:53:12Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/UPvILvUtot8",
  "published": "2024-12-04T18:53:23Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/A3luo0k6oMc",
    "published": "2024-12-04T18:53:23Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/YQrfajJv9Qo",
  "published": "2024-12-04T18:53:34Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/l87zwFO35mo",
    "published": "2024-12-04T18:53:34Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/UloWv-KTrAQ",
  "published": "2024-12-04T18:53:46Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/5iDTMckEg_8",
    "published": "2024-12-04T18:53:46Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/ElW35y6Dgqw",
  "published": "2024-12-04T18:53:57Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/PEzmAui20Ek",
    "published": "2024-12-04T18:53:57Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/GiIaD3Hza4c",
  "published": "2024-12-04T18:54:09Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/2vAqq8_lc_8",
    "published": "2024-12-04T18:54:09Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/SiXNA1xRmdc",
  "published": "2024-12-04T18:54:20Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/mw5E_d39Lyk",
    "published": "2024-12-04T18:54:20Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/SM83f06lo8s",
  "published": "2024-12-04T18:54:32Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/bJXnMkQdt-8",
    "published": "2024-12-04T18:54:32Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/QwdN_8caFmo",
  "published": "2024-12-04T18:54:43Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/y_U48Rt5gvY",
    "published": "2024-12-04T18:54:43Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/-o8Mi6uG_Ok",
  "published": "2024-12-04T18:54:54Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/9toKbb4lVBc",
    "published": "2024-12-04T18:54:54Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/qO1u-jZL7fo",
  "published": "2024-12-04T18:55:06Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/4-0-5pE6fFg",
    "published": "2024-12-04T18:55:06Z",
    "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/a1dt71ulqgq90001"
  ],
  "id": "http://pasture-one-actor/actor/4BodIHAREAM",
  "published": "2024-12-04T18:55:17Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a1dt71ulqgq90001"
    ],
    "id": "http://pasture-one-actor/actor/W7mH1lhJQfE",
    "published": "2024-12-04T18:55:17Z",
    "content": "text",
    "url": {
      "href": "https://notype.example/"
    }
  }
}