Unverified Commit dd059edb authored by Hong Minhee's avatar Hong Minhee
Browse files

`fedify.actor.identifier` attribute

parent d97ee744
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ for ActivityPub:
| `activitypub.object.in_reply_to`      | string[] | The URI(s) of the original object to which the object reply.                             | `["https://example.com/object/1"]`                                   |
| `activitypub.inboxes`                 | int      | The number of inboxes the activity is sent to.                                           | `12`                                                                 |
| `activitypub.shared_inbox`            | boolean  | Whether the activity is sent to the shared inbox.                                        | `true`                                                               |
| `fedify.actor.identifier`             | string   | The identifier of the actor.                                                             | `"1"`                                                                |
| `http_signatures.signature`           | string   | The signature of the HTTP request in hexadecimal.                                        | `"73a74c990beabe6e59cc68f9c6db7811b59cbb22fd12dcffb3565b651540efe9"` |
| `http_signatures.algorithm`           | string   | The algorithm of the HTTP request signature.                                             | `"rsa-sha256"`                                                       |
| `http_signatures.key_id`              | string   | The public key ID of the HTTP request signature.                                         | `"https://example.com/actor/1#main-key"`                             |
+11 −2
Original line number Diff line number Diff line
@@ -843,7 +843,10 @@ export class FederationImpl<TContextData> implements Federation<TContextData> {
      dispatcher: async (context, identifier) => {
        const actor = await this.#getTracer().startActiveSpan(
          "activitypub.dispatch_actor",
          { kind: SpanKind.SERVER },
          {
            kind: SpanKind.SERVER,
            attributes: { "fedify.actor.identifier": identifier },
          },
          async (span) => {
            try {
              const actor = await dispatcher(context, identifier);
@@ -1068,7 +1071,13 @@ export class FederationImpl<TContextData> implements Federation<TContextData> {
        callbacks.keyPairsDispatcher = (ctx, identifier) =>
          this.#getTracer().startActiveSpan(
            "activitypub.dispatch_actor_key_pairs",
            { kind: SpanKind.SERVER },
            {
              kind: SpanKind.SERVER,
              attributes: {
                "activitypub.actor.id": ctx.getActorUri(identifier).href,
                "fedify.actor.identifier": identifier,
              },
            },
            async (span) => {
              try {
                return await dispatcher(ctx, identifier);