Skip to content

After unblock can retrieve profile

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,
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1"
  ],
  "publicKey": {
    "id": "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA#legacy-key-1",
    "owner": "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyzoaUbGMz4gdqF1ZpPCL\noPBGaGYo1/+N5nWxWOON00OoDV4IET2oM1c304PbgMBm0Q/6JSqitLfRLECvi4QP\ncxix+lnLoLmgdbUsBchi6epwrVyJzHAEf85awt/NNnyQ0Nohae8SyC9NL5b6IQEp\nJHryuhLtAV+LusTOo5Ii9H43/iqmhGB8bi2Daw/i8NT0JMlLMGc8V1w1XlmKlX3l\neRhm9XQtVhxEuXqFR4STDEWV44vJ4X3T0l8zX8rPPV7/rkwBmt0EOd3f1Yc86bAa\ngo2NXIZS7HBGSCRwkkCy5MpE386PWQC95FjQssrzTyv+qZaygSku14gHCab7GhFh\nPQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA",
  "type": "Person",
  "inbox": "http://abel/inbox/KQ5ZP9kvQVnt8OfNSLob5Q",
  "outbox": "http://abel/outbox/Cu1pE80fIUQMwFJppU8NKA",
  "followers": "http://abel/followers/tyjKjdtHxA0-6yjbVVd5Dg",
  "following": "http://abel/following/rusT_68cuvpIaCmdrFqehg",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  }
}

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,
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1"
  ],
  "publicKey": {
    "id": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA#legacy-key-1",
    "owner": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtY+11AWsXRFTCRgJa1xQ\n/Z2x/IUSxw//gaYh/t2NXgLKV6ZMfIOx8cEPHDJcxr7YhW7VaH+GMrLH51inYXyf\nsW4+T2vh/epqPmh3AGwZgg0ZHhFvQbx25PG0jM5NFUnsHWYvxR0Z0oO5cZtIRHyR\noV5wGMf9vyWap2cw+SBo+tJxcb31CptbDWqsCIEAA22d8itDekiFtaBqbsa2El93\nFyy810QinzBL63W2qf4aa+GEEpWcjOfW+Lk2p3VcNl1XD2d2EEOS+edCPxD5poIK\nJrMVfVmY8tNCs+rGNGwZ0R6rM0+mX2lsoMchROjfIUWYxFis6howCbSi7LwWVP2y\n5wIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
  "type": "Person",
  "inbox": "http://banach/inbox/Y2seXGmX_5uMb2aOe7gCBw",
  "outbox": "http://banach/outbox/lPFPmn1jqmX4L8s443QeqA",
  "followers": "http://banach/followers/UXrNSHBe64ziph1Z_Y07Zw",
  "following": "http://banach/following/BLMr6i1bLCKlXf_9Pi-CbA",
  "preferredUsername": "Bob",
  "name": "Bob",
  "identifiers": [
    "acct:Bob@banach",
    "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  }
}

given: "Bob" blocks "Alice"

send.Bob.trigger.send_message
{
  "actor": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Block",
    "actor": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
    "to": [
      "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
    ],
    "id": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA/9b8178a909e0d2a9",
    "published": "2025-02-23T08:46:24Z",
    "object": "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
  }
}
receive.Bob.outgoing
{
  "actor": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
  "event_type": "outgoing",
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Block",
      "actor": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
      "to": [
        "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
      ],
      "id": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA/9b8178a909e0d2a9",
      "published": "2025-02-23T08:46:24Z",
      "object": "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
    },
    "recipients": {
      "recipients": [
        "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
      ],
      "public": false
    }
  }
}

when: "Bob" unblocks "Alice"

send.Bob.trigger.send_message
{
  "actor": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Undo",
    "actor": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
    "to": [
      "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
    ],
    "published": "2025-02-23T08:46:24Z",
    "object": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA/9b8178a909e0d2a9",
    "id": "undo:88e0a052-eaed-4fdb-8a67-5659ed377a37"
  }
}
receive.Bob.outgoing
{
  "actor": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
  "event_type": "outgoing",
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Undo",
      "actor": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
      "to": [
        "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
      ],
      "published": "2025-02-23T08:46:24Z",
      "object": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA/9b8178a909e0d2a9",
      "id": "undo:88e0a052-eaed-4fdb-8a67-5659ed377a37"
    },
    "recipients": {
      "recipients": [
        "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA"
      ],
      "public": false
    }
  }
}

when: "Alice" retrieves the object with the actor id of "Bob"

send.Alice.request.fetch
{
  "actor": "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA",
  "uri": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA"
}
receive.Alice.response.fetch
{
  "actor": "http://abel/actor/A8AtDcT1_slqaZDlCIrQUA",
  "uri": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
  "data": {
    "attachment": null,
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1"
    ],
    "publicKey": {
      "id": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA#legacy-key-1",
      "owner": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
      "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtY+11AWsXRFTCRgJa1xQ\n/Z2x/IUSxw//gaYh/t2NXgLKV6ZMfIOx8cEPHDJcxr7YhW7VaH+GMrLH51inYXyf\nsW4+T2vh/epqPmh3AGwZgg0ZHhFvQbx25PG0jM5NFUnsHWYvxR0Z0oO5cZtIRHyR\noV5wGMf9vyWap2cw+SBo+tJxcb31CptbDWqsCIEAA22d8itDekiFtaBqbsa2El93\nFyy810QinzBL63W2qf4aa+GEEpWcjOfW+Lk2p3VcNl1XD2d2EEOS+edCPxD5poIK\nJrMVfVmY8tNCs+rGNGwZ0R6rM0+mX2lsoMchROjfIUWYxFis6howCbSi7LwWVP2y\n5wIDAQAB\n-----END PUBLIC KEY-----\n"
    },
    "id": "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA",
    "type": "Person",
    "inbox": "http://banach/inbox/Y2seXGmX_5uMb2aOe7gCBw",
    "outbox": "http://banach/outbox/lPFPmn1jqmX4L8s443QeqA",
    "followers": "http://banach/followers/UXrNSHBe64ziph1Z_Y07Zw",
    "following": "http://banach/following/BLMr6i1bLCKlXf_9Pi-CbA",
    "preferredUsername": "Bob",
    "name": "Bob",
    "identifiers": [
      "acct:Bob@banach",
      "http://banach/actor/OfmTb7R9DcZB7u6rQ9arsA"
    ],
    "endpoints": {
      "sharedInbox": "http://banach/shared_inbox"
    }
  }
}

then: The retrieved object is the profile of "Bob"