Some progress towards accepting and rejecting follows #3

Merged
steffo merged 22 commits from feature/follows into main 2024-10-23 05:47:18 +00:00
Showing only changes of commit b22139ea73 - Show all commits

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