From c80b16cdf8140d8d1fcb41e2fd190ff78eef4237 Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 17 Jul 2024 15:29:13 +0900 Subject: [PATCH] =?UTF-8?q?refreshAndprepareEd25519KeyPair=20=E2=86=92=20r?= =?UTF-8?q?efreshAndPrepareEd25519KeyPair?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/UserKeypairService.ts | 2 +- .../backend/src/core/activitypub/ApDeliverManagerService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/UserKeypairService.ts b/packages/backend/src/core/UserKeypairService.ts index 74d1257bc3..9edc8ecc27 100644 --- a/packages/backend/src/core/UserKeypairService.ts +++ b/packages/backend/src/core/UserKeypairService.ts @@ -141,7 +141,7 @@ export class UserKeypairService implements OnApplicationShutdown { * @returns MiUserKeypair if keypair is created, void if keypair is already exists */ @bindThis - public async refreshAndprepareEd25519KeyPair(userId: MiUser['id']): Promise { + public async refreshAndPrepareEd25519KeyPair(userId: MiUser['id']): Promise { await this.refresh(userId); const keypair = await this.keypairEntityCache.fetch(userId); if (keypair.ed25519PublicKey != null) { diff --git a/packages/backend/src/core/activitypub/ApDeliverManagerService.ts b/packages/backend/src/core/activitypub/ApDeliverManagerService.ts index e09b548d3a..decb021561 100644 --- a/packages/backend/src/core/activitypub/ApDeliverManagerService.ts +++ b/packages/backend/src/core/activitypub/ApDeliverManagerService.ts @@ -135,7 +135,7 @@ class DeliverManager { /** * ed25519の署名がなければ追加する */ - const created = await this.userKeypairService.refreshAndprepareEd25519KeyPair(this.actor.id); + const created = await this.userKeypairService.refreshAndPrepareEd25519KeyPair(this.actor.id); if (created) { // createdが存在するということは新規作成されたということなので、フォロワーに配信する this.logger.info(`ed25519 key pair created for user ${this.actor.id} and publishing to followers`);