Rename actor dispatcher to actor handler

This commit is contained in:
Steffo 2024-10-20 06:25:20 +02:00
parent 42c7f73bf5
commit b22139ea73
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -19,7 +19,7 @@ export class DotinoVeloce {
this.stratz = stratz
this.federation = createFederation<ContextData>({ kv })
this.federation.setInboxListeners("/inbox/{identifier}", /* We don't need shared inboxes here. */)
this.federation.setActorDispatcher("/users/{identifier}", this.#actorDispatcher)
this.federation.setActorDispatcher("/users/{identifier}", this.#actorHandler)
}
#commonActorProperties(ctx: Context<ContextData>, handle: string): Partial<Actor> {
@ -186,7 +186,7 @@ export class DotinoVeloce {
return actor
}
async #actorDispatcher(ctx: any, handle: string) {
async #actorHandler(ctx: any, handle: string) {
l.debug`Handling actor with handle: ${handle}`
let actor = null