Skip to content

Add new primary identifier; unverifiable identifier

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:49:31.020956",
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "publicKey": {
    "id": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw#legacy-key-1",
    "owner": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw",
    "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAry3AKfFe2YZ5Ym2Q4QTh\npHrDyqbN84CAWN4H1wQlGn9e4o8E+kbReemZK6H8hKAkXEFUErKs/Dg4ThDz3MTw\nAcwNGBCmz9dnWqvQ0WWZtyPsDw0q3ZPKYmuUyFiwObvw3vU95ezgoH+Q4vRWWXW8\ncxpBzh0FcC0IICR6c6glA5neunjBkOxMjj6oI7uP4PRYi+/Bthfl1N4wxW7cJQZt\nkXbmcvYET7II2G2SOQWPIp8ZCvJMjjVGgkcb1gURmUtZxhHUFxkQW8hXY4jybxad\n5da8/hb6HInDi6LHq3qZ4EIsTHUipFDEkGd9L5//D6DEyOBFMeyxCx0qUrG1v2Kh\nXQIDAQAB\n-----END PUBLIC KEY-----\n"
  },
  "id": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw",
  "type": "Person",
  "inbox": "http://abel/inbox/WbM4dyW5KtwCp2IcInuP3A",
  "outbox": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw/outbox",
  "followers": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw/followers",
  "following": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw/following",
  "preferredUsername": "Alice",
  "name": "Alice",
  "identifiers": [
    "acct:Alice@abel",
    "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw"
  ],
  "endpoints": {
    "sharedInbox": "http://abel/shared_inbox"
  },
  "manuallyApprovesFollowers": true
}

given: "Alice" adds "acct:alex@unknown.test" as a primary identifier

send.Alice.trigger.update_actor
{
  "actor": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw",
  "profile": null,
  "autoFollow": null,
  "actions": [
    {
      "action": "create_identifier",
      "identifier": "acct:alex@unknown.test",
      "primary": true
    }
  ]
}

when: "Alice" retrieves the object with id "acct:Alice@abel"

send.Alice.request.fetch
{
  "actor": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw",
  "uri": "acct:Alice@abel"
}
receive.Alice.response.fetch
{
  "actor": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw",
  "uri": "acct:Alice@abel",
  "data": {
    "attachment": null,
    "published": "2025-12-19T09:49:31.020956",
    "@context": [
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1",
      {
        "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
      }
    ],
    "publicKey": {
      "id": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw#legacy-key-1",
      "owner": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw",
      "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAry3AKfFe2YZ5Ym2Q4QTh\npHrDyqbN84CAWN4H1wQlGn9e4o8E+kbReemZK6H8hKAkXEFUErKs/Dg4ThDz3MTw\nAcwNGBCmz9dnWqvQ0WWZtyPsDw0q3ZPKYmuUyFiwObvw3vU95ezgoH+Q4vRWWXW8\ncxpBzh0FcC0IICR6c6glA5neunjBkOxMjj6oI7uP4PRYi+/Bthfl1N4wxW7cJQZt\nkXbmcvYET7II2G2SOQWPIp8ZCvJMjjVGgkcb1gURmUtZxhHUFxkQW8hXY4jybxad\n5da8/hb6HInDi6LHq3qZ4EIsTHUipFDEkGd9L5//D6DEyOBFMeyxCx0qUrG1v2Kh\nXQIDAQAB\n-----END PUBLIC KEY-----\n"
    },
    "id": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw",
    "type": "Person",
    "inbox": "http://abel/inbox/WbM4dyW5KtwCp2IcInuP3A",
    "outbox": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw/outbox",
    "followers": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw/followers",
    "following": "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw/following",
    "preferredUsername": "Alice",
    "name": "Alice",
    "identifiers": [
      "acct:Alice@abel",
      "http://abel/actor/QZqnj3aevqt8fOCKWhmgSw"
    ],
    "endpoints": {
      "sharedInbox": "http://abel/shared_inbox"
    },
    "manuallyApprovesFollowers": true
  }
}

then: The preferred username is "Alice"

then: "acct:alex@unknown.test" is not contained in the identifiers array