Skip to content

Messages have url property

given: "Alice" created an actor on "abel" called "Alice"

send.Alice.request.create_actor
{
  "base_url": "http://abel",
  "preferred_username": "Alice",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.Alice.response.create_actor
{
  "attachment": null,
  "published": "2025-12-19T09:48:58.418475",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q#legacy-key-1",
    "owner": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy6CWGOLxTBgLta0JMwrM\nJm1dY6MPLA1Ll/ilKQ2/zyFNsunI24uijx8SiAvRc6F5yXHpu24AUaLE2lsLMxgs\nMFjCoQjcPqTJKXUU732nn2vE+VxQei2LepVmZKrp1UD0+MKgDe0Ffz8RRdoGQ/BC\nAUUAChZqkFvp6QpXLSlOuxTf0cBM4btatHiQ6bnXX1ho8THNzNR6i8h1zOJ9VmWY\nRj3ebm6DS1DHaJlKTI8WKsQX/c0jqs7Rw/CVtILfOGdli4DTUNP+1iOOx9aTRiw1\nbHhSmY9MqvEQiQpDHT/D6oaVQCy3EKqoUY8ErmykNO5b/lnQAqduPV41QZZgY3Nc\nNwIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
  "type": "Person",
  "inbox": "http://abel/inbox/87l4Pp0nb2sYtdquN6SHaQ",
  "outbox": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q/outbox",
  "followers": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q/followers",
  "following": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

given: "Bob" created an actor on "banach" called "Bob"

send.Bob.request.create_actor
{
  "base_url": "http://banach",
  "preferred_username": "Bob",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.Bob.response.create_actor
{
  "attachment": null,
  "published": "2025-12-19T09:48:59.589127",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw#legacy-key-1",
    "owner": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7w0b7zfUaF2rLQ/dhbB8\nGP38YPrAAUNlTRCTnQihHRdL4wmPyOWRbay2C+N6c73s2NYHxg/Sr/SHM/FoR9XX\n07TbX2OxcSfGSI/YSbrdlT6PfpsInOcG9KHgmGb74UM+krgQqo0Cc4xO13LaIL15\n+RjqKqKXI016cei8EwL74aisCYEzkyqSLCZ7NrG6w57rG9sc21Jj8iu/XFKb0nhn\ncIK2K2QxV0h9VwtVTS/aU5N7fbTtgS6xEJ+a29Mr72If3uPJfcFD1t/HCfRawHCA\n/dhwSvlUHPki7PLU0Y4yOPSppHiJiBzC7jyBDSqpZ42Zn3HXYtOACsNPNVtdNrv0\nkwIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
  "type": "Person",
  "inbox": "http://banach/inbox/w0SqvGk1mlnrexUgunWbLA",
  "outbox": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw/outbox",
  "followers": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw/followers",
  "following": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw/following",
  "preferredUsername": "Bob",
  "name": "Bob",
  "identifiers": [
    "acct:Bob@banach",
    "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

when: "Bob" sends "Alice" a Follow Activity

send.Bob.trigger.send_message
{
  "actor": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Follow",
    "actor": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
    "to": [
      "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q"
    ],
    "id": "follow:2d8955a0-9749-4f38-879f-315b6a141f3a",
    "published": "2025-12-19T09:48:59Z",
    "object": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q"
  }
}
receive.Bob.outgoing.Follow
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Follow",
      "actor": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
      "to": [
        "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q"
      ],
      "id": "follow:2d8955a0-9749-4f38-879f-315b6a141f3a",
      "published": "2025-12-19T09:48:59Z",
      "object": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q"
    }
  },
  "actor": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
  "event_type": "outgoing",
  "history_id": null
}

when: "Alice" sends an Accept to this Follow Activity

receive.Alice.incoming.Follow
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Follow",
      "actor": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
      "to": [
        "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q"
      ],
      "id": "follow:2d8955a0-9749-4f38-879f-315b6a141f3a",
      "published": "2025-12-19T09:48:59Z",
      "object": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q"
    }
  },
  "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
  "event_type": "incoming",
  "history_id": null
}
send.Alice.trigger.send_message
{
  "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Accept",
    "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
    "to": [
      "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw"
    ],
    "published": "2025-12-19T09:49:00Z",
    "object": "follow:2d8955a0-9749-4f38-879f-315b6a141f3a",
    "id": "accept:6ccfd886-2aba-48dc-a096-80dff8cbf454"
  }
}
receive.Alice.outgoing.Accept
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Accept",
      "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
      "to": [
        "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw"
      ],
      "published": "2025-12-19T09:49:00Z",
      "object": "follow:2d8955a0-9749-4f38-879f-315b6a141f3a",
      "id": "accept:6ccfd886-2aba-48dc-a096-80dff8cbf454"
    }
  },
  "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
  "event_type": "outgoing",
  "history_id": null
}

when: "Alice" publishes a message "Who stole my milk?" to her followers

receive.Bob.incoming.Accept
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Accept",
      "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
      "to": [
        "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw"
      ],
      "published": "2025-12-19T09:49:00Z",
      "object": "follow:2d8955a0-9749-4f38-879f-315b6a141f3a",
      "id": "accept:6ccfd886-2aba-48dc-a096-80dff8cbf454"
    }
  },
  "actor": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
  "event_type": "incoming",
  "history_id": null
}
send.Alice.trigger.publish_object
{
  "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Note",
    "attributedTo": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public"
    ],
    "cc": [
      "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q/followers"
    ],
    "published": "2025-12-19T09:49:00Z",
    "content": "Who stole my milk?"
  }
}
receive.Alice.outgoing.Create
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Create",
      "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "cc": [
        "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q/followers"
      ],
      "published": "2025-12-19T09:49:01Z",
      "object": {
        "@context": "https://www.w3.org/ns/activitystreams",
        "type": "Note",
        "attributedTo": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
        "to": [
          "https://www.w3.org/ns/activitystreams#Public"
        ],
        "cc": [
          "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q/followers"
        ],
        "published": "2025-12-19T09:49:00Z",
        "content": "Who stole my milk?",
        "id": "http://abel/html_display/object/019b3603-3ec8-7295-8d01-89acedfa6566",
        "replies": "http://abel/html_display/object/019b3603-3ec8-7295-8d01-89acedfa6566/replies",
        "shares": "http://abel/html_display/object/019b3603-3ec8-7295-8d01-89acedfa6566/shares",
        "likes": "http://abel/html_display/object/019b3603-3ec8-7295-8d01-89acedfa6566/likes",
        "url": [
          {
            "type": "Link",
            "mediaType": "text/html",
            "href": "http://abel/@pkSZZelZEASs/o/019b3603-3ec8-7295-8d01-89acedfa6566"
          }
        ]
      },
      "id": "http://abel/simple_storage/019b3603-3ed6-7bd3-b3b5-dd1657ccc3c7"
    }
  },
  "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
  "event_type": "outgoing",
  "history_id": null
}
receive.Bob.incoming.Create
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Create",
      "actor": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "cc": [
        "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q/followers"
      ],
      "published": "2025-12-19T09:49:01Z",
      "object": {
        "@context": "https://www.w3.org/ns/activitystreams",
        "type": "Note",
        "attributedTo": "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q",
        "to": [
          "https://www.w3.org/ns/activitystreams#Public"
        ],
        "cc": [
          "http://abel/actor/EoWS_hoW6U2BfQjQhkN6_Q/followers"
        ],
        "published": "2025-12-19T09:49:00Z",
        "content": "Who stole my milk?",
        "id": "http://abel/html_display/object/019b3603-3ec8-7295-8d01-89acedfa6566",
        "replies": "http://abel/html_display/object/019b3603-3ec8-7295-8d01-89acedfa6566/replies",
        "shares": "http://abel/html_display/object/019b3603-3ec8-7295-8d01-89acedfa6566/shares",
        "likes": "http://abel/html_display/object/019b3603-3ec8-7295-8d01-89acedfa6566/likes",
        "url": [
          {
            "type": "Link",
            "mediaType": "text/html",
            "href": "http://abel/@pkSZZelZEASs/o/019b3603-3ec8-7295-8d01-89acedfa6566"
          }
        ]
      },
      "id": "http://abel/simple_storage/019b3603-3ed6-7bd3-b3b5-dd1657ccc3c7"
    }
  },
  "actor": "http://banach/actor/RVuyGGx9QZJdYaiPmXWFYw",
  "event_type": "incoming",
  "history_id": null
}

then: "Bob" receives a message saying "Who stole my milk?"

then: The received message contains an URL of mediatype "text/html"

then: The URL resolves to a webpage containing "Who stole my milk?"