Skip to content

Export contains message

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

send.Alice.request.create_actor
{
  "base_url": "http://banach",
  "preferred_username": "Alice",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.Alice.response.create_actor
{
  "attachment": null,
  "published": "2025-12-19T09:49:16.161680",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA#legacy-key-1",
    "owner": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA16wansQFiZ7haZ/921rj\nmEZUC4nWIXbsHKJAFckil6dajyP/vkwNrZ6lePSnw9FH+S0C65PD6hgo3gbryq5r\nfWhLAnEJGun6xJ+wEG1l6D8wDD/f+bojpBiAj6cfLAF2ZoAl48o9bHVZgn2KvEmd\nlfwNtk5DWEWwK3lpCItOcVN1fywcaKHRgEGCe41vVAb+7wpA+1ZLpaA52PaMP/Id\nvlVyqSUzJI2RejNT+9Vt+Xfu/J/niWKiRJrwu/xnmW+xBvxZGIqoPAa2Da4Pke82\nxN6htZGwiIf9Rip9pu2FIdOzVb5TcQl67CcIObKcIIEWLnPzms0XzFuQd+ERbLxd\nqQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA",
  "type": "Person",
  "inbox": "http://banach/inbox/ddnO8RVuVYGgqZOwWFJubg",
  "outbox": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA/outbox",
  "followers": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA/followers",
  "following": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@banach",
    "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

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

send.Alice.trigger.publish_object
{
  "actor": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Note",
    "attributedTo": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public"
    ],
    "cc": [
      "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA/followers"
    ],
    "published": "2025-12-19T09:49:16Z",
    "content": "Who stole my milk?"
  }
}
receive.Alice.outgoing.Create
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Create",
      "actor": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "cc": [
        "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA/followers"
      ],
      "published": "2025-12-19T09:49:16Z",
      "object": {
        "@context": "https://www.w3.org/ns/activitystreams",
        "type": "Note",
        "attributedTo": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA",
        "to": [
          "https://www.w3.org/ns/activitystreams#Public"
        ],
        "cc": [
          "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA/followers"
        ],
        "published": "2025-12-19T09:49:16Z",
        "content": "Who stole my milk?",
        "id": "http://banach/html_display/object/019b3603-7cfc-7144-8ba5-33e9d9efd5dc",
        "replies": "http://banach/html_display/object/019b3603-7cfc-7144-8ba5-33e9d9efd5dc/replies",
        "shares": "http://banach/html_display/object/019b3603-7cfc-7144-8ba5-33e9d9efd5dc/shares",
        "likes": "http://banach/html_display/object/019b3603-7cfc-7144-8ba5-33e9d9efd5dc/likes",
        "url": [
          {
            "type": "Link",
            "mediaType": "text/html",
            "href": "http://banach/@XiwzddMXsjCA/o/019b3603-7cfc-7144-8ba5-33e9d9efd5dc"
          }
        ]
      },
      "id": "http://banach/simple_storage/019b3603-7d08-7ba1-a29f-9b34a31c4d40"
    }
  },
  "actor": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA",
  "event_type": "outgoing",
  "history_id": null
}

when: "Alice" requests an export token

send.Alice.trigger.html_display_export
{
  "actor": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA"
}
receive.Alice.response.trigger
{
  "actor": "http://banach/actor/aKBnl26ZIK9WkfYnNorZoA",
  "token": "495c6dd1-a9ea-428c-9f03-bd614ba00a0c",
  "export_url": "http://banach/@XiwzddMXsjCA/export?token=495c6dd1-a9ea-428c-9f03-bd614ba00a0c"
}

when: The export url is retrieved

then: The response code is "200"

then: The response contains "Who stole my milk?"