An appeal to support inbound array URLs

While many AP projects already support array URLs on the inbound side, some well known ones still don’t and crash if they receive one.

This is a very useful feature for some projects and implementing it is relatively simple.

Thank you!

1 Like

Can you give an example of where you’d want to send an array URL and what that would look like perhaps with some sample JSON?

See the url attribute in this sample person object:

{
  "type": "Person",
  "id": "https://example.com/users/name",
  "preferredUsername": "name",
  "name": "Firstname Lastname",
  "updated": "2021-01-01T00:00:00Z",
  "icon": {
    "type": "Image",
    "mediaType": "image/jpeg",
    "updated": "2021-01-01T00:00:00Z",
    "url": "https://example.com/photo/name.jpg",
    "height": 300,
    "width": 300
  },
  "url": [
    {
      "type": "Link",
      "rel": "alternate",
      "mediaType": "application/x-zot+json",
      "href": "https://example.com/users/name"
    },
    {
      "type": "Link",
      "rel": "alternate",
      "mediaType": "application/activity+json",
      "href": "https://example.com/users/name"
    },
    {
      "type": "Link",
      "rel": "me",
      "mediaType": "text/html",
      "href": "https://example.com/users/name"
    }
  ],
  "publicKey": {
    "id": "https://example.com/users/name",
    "owner": "https://example.com/users/name",
    "publicKeyPem": "-- the public key --"
  },
  "outbox": "https://example.com/outbox/name",
  "inbox": "https://example.com/inbox/name",
  "followers": "https://example.com/followers/name",
  "following": "https://example.com/following/name",
  "endpoints": {
    "sharedInbox": "https://example.com/inbox"
  },
  "image": {
    "type": "Image",
    "mediaType": "image/png",
    "url": "https://example.com/photo/cover.jpg"
  }
}