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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/UCXwlRhPXKw",
  "published": "2024-12-02T19:07:36Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/CPytn5Vzd-Q",
    "published": "2024-12-02T19:07:36Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/jmGVuKfqN5M",
  "published": "2024-12-02T19:07:48Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/F7NFMMDITm4",
    "published": "2024-12-02T19:07:48Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/CidN_b70log",
  "published": "2024-12-02T19:08:00Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/X08NvGMjLYs",
    "published": "2024-12-02T19:08:00Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/dLkMLwgXZgc",
  "published": "2024-12-02T19:08:11Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/YTAg1-8zhZo",
    "published": "2024-12-02T19:08:11Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/2o1sH4Or-pU",
  "published": "2024-12-02T19:08:22Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/QCyEx6-5rg4",
    "published": "2024-12-02T19:08:22Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/M-osf8UjMIg",
  "published": "2024-12-02T19:08:34Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/uGOGii8Pky0",
    "published": "2024-12-02T19:08:34Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/kndWa2XyM2Y",
  "published": "2024-12-02T19:08:45Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/dILJiPffL_Q",
    "published": "2024-12-02T19:08:45Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/XEk4qUiZA0g",
  "published": "2024-12-02T19:08:56Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/8Z9O2cN4C9Q",
    "published": "2024-12-02T19:08:56Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/bpYVLJVSAeY",
  "published": "2024-12-02T19:09:08Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/rMbZZmLEVu8",
    "published": "2024-12-02T19:09:08Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/uGV6UHFLEHg",
  "published": "2024-12-02T19:09:19Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/wH8wz5sauqw",
    "published": "2024-12-02T19:09:19Z",
    "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/1z2fEKF5mP4",
  "published": "2024-12-02T19:09:31Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/7Qj6sYAYmsQ",
    "published": "2024-12-02T19:09: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",
        "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://misskey/users/a1aytkg4okke0001"
  ],
  "id": "http://pasture-one-actor/actor/5caRDOS7zw4",
  "published": "2024-12-02T19:09:42Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://misskey/users/a1aytkg4okke0001"
    ],
    "id": "http://pasture-one-actor/actor/01QMrvz-IKg",
    "published": "2024-12-02T19:09:42Z",
    "content": "text",
    "url": {
      "href": "https://notype.example/"
    }
  }
}