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": [
    "http://sharkey/users/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/RRv3SrVJ_30",
  "published": "2024-12-31T10:17:01Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/q_KIQ8bl7Rg",
    "published": "2024-12-31T10:17:01Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/ecJoVKqkdcw",
  "published": "2024-12-31T10:17:13Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/Xni3Cr_Tksc",
    "published": "2024-12-31T10:17:13Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/9j2x10LQeck",
  "published": "2024-12-31T10:17:24Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/oCvTu1UW-fg",
    "published": "2024-12-31T10:17:24Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/3XFyO_LgUfk",
  "published": "2024-12-31T10:17:36Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/bH3I4HQE_QA",
    "published": "2024-12-31T10:17:36Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/0-7w9kWomDQ",
  "published": "2024-12-31T10:17:47Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/JJYq3kCNk_o",
    "published": "2024-12-31T10:17:47Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/82xaxFJwLyA",
  "published": "2024-12-31T10:17:59Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/Jd4obSKUaj8",
    "published": "2024-12-31T10:17:59Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/_j0dDoW4xwo",
  "published": "2024-12-31T10:18:10Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/2ikZccTV0fI",
    "published": "2024-12-31T10:18:10Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/QHe_lZaLwRs",
  "published": "2024-12-31T10:18:21Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/gfZd8GbIoP4",
    "published": "2024-12-31T10:18:21Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/4viHdnLoc4s",
  "published": "2024-12-31T10:18:33Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/TJV6e2f47gQ",
    "published": "2024-12-31T10:18:33Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/JWUIKHsI2tU",
  "published": "2024-12-31T10:18:44Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/WjXnnTb3DUA",
    "published": "2024-12-31T10:18:44Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/tbnn16AIv4Y",
  "published": "2024-12-31T10:18:56Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/9p8tpt7l-7Y",
    "published": "2024-12-31T10:18:56Z",
    "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/a2fvn782j5y00001",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "id": "http://pasture-one-actor/actor/5dGMbzlaQOE",
  "published": "2024-12-31T10:19:07Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://sharkey/users/a2fvn782j5y00001"
    ],
    "id": "http://pasture-one-actor/actor/36bnH-Cu3kc",
    "published": "2024-12-31T10:19:07Z",
    "content": "text",
    "url": {
      "href": "https://notype.example/"
    }
  }
}