Skip to content

Blocked -- @1.4

given: "Alice" created an actor on "abel" called "Alice" with username "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": "2026-03-20T15:20:41.185421",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ#legacy-key-1",
    "owner": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArJBRd/F91A8qr1oh7baq\nlKBVriTbK2Bi2WcaWV321CxF4RpOSHUeYwlnhPPlv1Dus2t7eBN9VA2hEhnomw5i\nATn88UrhdFjLDcEOboqjAjP72SSrhnM22PbAWj49LM+5q+Y2bQPNWGZJVi1KD1Ch\nWyCxCFNd4430Y5Zy7UeA11fmJ239nHjKwuPbmeMBA5uM8vbPk2i6EJhkEDtCfTJ6\nTayfrxQfwIZUP7eGSk/ikyNIdd2auKd8GsjSii7iy7Rc8lNHNlBjfVaQR0ZvWri5\n3W0Wm16c4BHAKT6WE2UuM0VGiOUPBxt9Rf/KAacaVuUq5llk3ybzs1StBxn5cbIs\nEQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ",
  "type": "Person",
  "inbox": "http://abel/inbox/TbG5hOZr7Z02gR7hzoHJ6Q",
  "outbox": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ/outbox",
  "followers": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ/followers",
  "following": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

given: "Bob" created an actor on "abel" called "Bob" with username "Bob"

send.Bob.request.create_actor
{
  "base_url": "http://abel",
  "preferred_username": "Bob",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.Bob.response.create_actor
{
  "attachment": null,
  "published": "2026-03-20T15:20:41.814610",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ#legacy-key-1",
    "owner": "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAur5VPRXwYkjgQFtiDBjC\nVjBO2vRWkbO6nFyOftBYs2TIqLTQhYGsKf5ifre8/8H4zHASHqkjhyw00ebNJNyb\noGmll293VxECBFO+UziWep8tNis6e06RoWpifvgMuMYjyxag6/BsntUk7sFNeS/+\nSyoySefTJ/qXhxA0qN1HUnHy0F22ZRJAY9/2splYDIoWeDbORbn+dq8jdtD/LgG/\nCzGVlimI/HucE4+z9NmgVnZaLPtd/6QBYWzbzVOcwH3UizrlIx9VaKfUpy/uyzIY\nR7B1zIunSZPy+bDtEiwb/eCMLCNKnoxeqB3bKY90EVs1ZIeGc6SgSWRkhmsEGjyk\nqQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ",
  "type": "Person",
  "inbox": "http://abel/inbox/156tmTfLR7MhE6yRE_OsaA",
  "outbox": "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ/outbox",
  "followers": "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ/followers",
  "following": "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ/following",
  "preferredUsername": "Bob",
  "name": "Bob",
  "identifiers": [
    "acct:Bob@abel",
    "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

given: "Claire" created an actor on "banach" called "Claire" with username "Claire"

send.Claire.request.create_actor
{
  "base_url": "http://banach",
  "preferred_username": "Claire",
  "profile": {},
  "automatically_accept_followers": null,
  "name": null
}
receive.Claire.response.create_actor
{
  "attachment": null,
  "published": "2026-03-20T15:20:42.389048",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://banach/actor/51b3SrSsytI2g4m5cxnmKg#legacy-key-1",
    "owner": "http://banach/actor/51b3SrSsytI2g4m5cxnmKg",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmjsq3Wd0hkz2DpdMmjDZ\n7WxZmirlUrDa8WtS3XvUMAI3Sv07yGJE6cjk5HhZQDC3WwsoAN/JkuypkJeiHzSx\nVC9UNWKa1jEUxNtvfQc+8M0Zxc66MJBQftZE98niNhSRFaMGZZgDeRsKcoOzPA5l\njgc6SEK7VkBLEKm5e+rrRMIHvSneTFIPWEyJmT+6IR/n1vxIq5PZ4u/YdoSlCqyh\nK+OJSI9qr0bI7lNB/Uuj+eWtLh+F/xTfUbMrRKpxCCqwzhhSoPRPz7Juj9lcQFRc\n+Fppzn861fYeFeowms+tsqfaI1uJ5e8bC7lgeJ4dqBwdzUKkwpEA1NbN9rOu/VmV\nNQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/51b3SrSsytI2g4m5cxnmKg",
  "type": "Person",
  "inbox": "http://banach/inbox/FXL-7b-LYAOzsPXbF14wgw",
  "outbox": "http://banach/actor/51b3SrSsytI2g4m5cxnmKg/outbox",
  "followers": "http://banach/actor/51b3SrSsytI2g4m5cxnmKg/followers",
  "following": "http://banach/actor/51b3SrSsytI2g4m5cxnmKg/following",
  "preferredUsername": "Claire",
  "name": "Claire",
  "identifiers": [
    "acct:Claire@banach",
    "http://banach/actor/51b3SrSsytI2g4m5cxnmKg"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

given: "Alice" blocks "Bob"

send.Alice.trigger.send_message
{
  "actor": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Block",
    "actor": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ",
    "to": [
      "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ"
    ],
    "id": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ/c51368366200f05d",
    "published": "2026-03-20T15:20:42Z",
    "object": "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ"
  }
}
receive.Alice.outgoing.Block
{
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Block",
      "actor": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ",
      "to": [
        "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ"
      ],
      "id": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ/c51368366200f05d",
      "published": "2026-03-20T15:20:42Z",
      "object": "http://abel/actor/K_c-zsiK_m9uux4bxLJclQ"
    }
  },
  "actor": "http://abel/actor/YM7-ZeV2aJXjNFY_DeF-SQ",
  "event_type": "outgoing",
  "history_id": null
}

when: "Alice" creates an object addressed to "public"

then: "Bob" is "unauthorized" to view this object