Skip to content

Delete actor returns 410 gone

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/FYZIXQ4dJGzvGv1Sr2XPjg#legacy-key-1",
    "owner": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqsOyCcZ7sSnj1xphO0EL\nunV/59IpVTcE3tyOf3SGbC3yRfkl3ZnD584vyc+7sSis9nBuXo8y7tRaqRKQTDo2\niLyIuDLcm94QMfLuLV58ulg3e3SOhnIXxyggYsrUTbCSSC4OTCAEhNGAyf5CLr9i\n1AfoDL36cN6xRkVlaZM4kjR99YDOi8tD6C64Jhzb30FCnf1iVYq+i8fTsoj1F+Ff\nECeNLlyQU9IjPqL9/+JB8MF40RNEawrUkp+PugSQxVEF73duZDEAZ2afL2fAaUSq\nZhyYeAslXwYPgz8glzug1p0xs212uS9/uk8jVL8qSSuxxC2dj0LyPcXH+31ZWbD/\nZQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg",
  "type": "Person",
  "inbox": "http://abel/inbox/g-9bQFdBaTzV2IYIMdygMg",
  "outbox": "http://abel/outbox/Fblv-o9Fz0cLP1KW2cCqHQ",
  "followers": "http://abel/followers/l93IiGL64oa8RvQyafos6Q",
  "following": "http://abel/following/lLYoBsxoH3BctTQeIdWsWw",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg"
  ],
  "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/MlmLS2D_DO1YADugX81yIw#legacy-key-1",
    "owner": "http://banach/actor/MlmLS2D_DO1YADugX81yIw",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7GtF7R5eUTNFioL8HJc1\nuhBVRIu+W4fXCrIu5voLik51vqbrEbnJL06Qs8cNpwNFREUr0yiZ6YnrbqHnW6cW\nHMGLpaJyTTDyF5rkMWetWqhMso6YorJj71DwKYOePHQtVFXvCjYZ1JZ5CrZkt/6o\nOXOv/q+JcKT6Kxvu/Pf3Zch4qa40mkwh/7WWJEYcF0ZSQTtuFgfZEegGM/POt8sy\nRzBtEr33BY/7m3wosyOKzZg9m7xRKBms7I3j6rUnHWjsor39/QnY4OO1WekEGwT7\nYgIYDc4AEmNVC40fgNEIPWUcC/kIount+nunuFTz4V3/QVm8GocF7VdopCTb9aqy\nfwIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://banach/actor/MlmLS2D_DO1YADugX81yIw",
  "type": "Person",
  "inbox": "http://banach/inbox/xq4yN3tx9eHQlO7IyVmIZA",
  "outbox": "http://banach/outbox/l04xrP_1ll2jx6Y8rvofkg",
  "followers": "http://banach/followers/99EdGBtOVaDxsTStXnhivA",
  "following": "http://banach/following/F9uptuzRIRsZ1x7Ut4ISOQ",
  "preferredUsername": "bob",
  "name": "bob",
  "identifiers": [
    "acct:bob@banach",
    "http://banach/actor/MlmLS2D_DO1YADugX81yIw"
  ],
  "endpoints": {
    "sharedInbox": "http://banach/shared_inbox"
  }
}

when: "Alice" deletes herself

send.Alice.trigger.delete_actor
{
  "actor": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg"
}
receive.Alice.outgoing
{
  "actor": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg",
  "event_type": "outgoing",
  "data": {
    "raw": {
      "@context": "https://www.w3.org/ns/activitystreams",
      "type": "Delete",
      "actor": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "cc": [
        "http://abel/followers/l93IiGL64oa8RvQyafos6Q",
        "http://abel/following/lLYoBsxoH3BctTQeIdWsWw"
      ],
      "published": "2025-02-23T08:45:38Z",
      "object": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg",
      "id": "http://abel/object/019531fb-c626-7613-add7-2361e3126bbf"
    },
    "recipients": {
      "recipients": [
        "https://www.w3.org/ns/activitystreams#Public",
        "http://abel/following/lLYoBsxoH3BctTQeIdWsWw",
        "http://abel/followers/l93IiGL64oa8RvQyafos6Q"
      ],
      "public": true
    }
  }
}

when: "bob" looks up the actor id of "Alice"

send.bob.request.fetch
{
  "actor": "http://banach/actor/MlmLS2D_DO1YADugX81yIw",
  "uri": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg"
}
receive.bob.response.fetch
{
  "actor": "http://banach/actor/MlmLS2D_DO1YADugX81yIw",
  "uri": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg",
  "data": {
    "@context": "https://www.w3.org/ns/activitystreams",
    "type": "Tombstone",
    "id": "http://abel/actor/FYZIXQ4dJGzvGv1Sr2XPjg"
  }
}

then: 410 gone is returned