refreshAndprepareEd25519KeyPair → refreshAndPrepareEd25519KeyPair
This commit is contained in:
parent
3777779aa9
commit
c80b16cdf8
|
@ -141,7 +141,7 @@ export class UserKeypairService implements OnApplicationShutdown {
|
||||||
* @returns MiUserKeypair if keypair is created, void if keypair is already exists
|
* @returns MiUserKeypair if keypair is created, void if keypair is already exists
|
||||||
*/
|
*/
|
||||||
@bindThis
|
@bindThis
|
||||||
public async refreshAndprepareEd25519KeyPair(userId: MiUser['id']): Promise<MiUserKeypair | void> {
|
public async refreshAndPrepareEd25519KeyPair(userId: MiUser['id']): Promise<MiUserKeypair | void> {
|
||||||
await this.refresh(userId);
|
await this.refresh(userId);
|
||||||
const keypair = await this.keypairEntityCache.fetch(userId);
|
const keypair = await this.keypairEntityCache.fetch(userId);
|
||||||
if (keypair.ed25519PublicKey != null) {
|
if (keypair.ed25519PublicKey != null) {
|
||||||
|
|
|
@ -135,7 +135,7 @@ class DeliverManager {
|
||||||
/**
|
/**
|
||||||
* ed25519の署名がなければ追加する
|
* ed25519の署名がなければ追加する
|
||||||
*/
|
*/
|
||||||
const created = await this.userKeypairService.refreshAndprepareEd25519KeyPair(this.actor.id);
|
const created = await this.userKeypairService.refreshAndPrepareEd25519KeyPair(this.actor.id);
|
||||||
if (created) {
|
if (created) {
|
||||||
// createdが存在するということは新規作成されたということなので、フォロワーに配信する
|
// createdが存在するということは新規作成されたということなので、フォロワーに配信する
|
||||||
this.logger.info(`ed25519 key pair created for user ${this.actor.id} and publishing to followers`);
|
this.logger.info(`ed25519 key pair created for user ${this.actor.id} and publishing to followers`);
|
||||||
|
|
Loading…
Reference in New Issue