delivre
This commit is contained in:
parent
a84de3c02f
commit
6b02efac32
|
@ -31,7 +31,7 @@ export class UserSuspendService {
|
||||||
const content = this.apRendererService.addContext(this.apRendererService.renderDelete(this.userEntityService.genLocalUserUri(user.id), user));
|
const content = this.apRendererService.addContext(this.apRendererService.renderDelete(this.userEntityService.genLocalUserUri(user.id), user));
|
||||||
const manager = this.apDeliverManagerService.createDeliverManager(user, content);
|
const manager = this.apDeliverManagerService.createDeliverManager(user, content);
|
||||||
manager.addAllKnowingSharedInboxRecipe();
|
manager.addAllKnowingSharedInboxRecipe();
|
||||||
// process delivre時にはキーペアが消去されているはずなので、ここで挿入する
|
// process deliver時にはキーペアが消去されているはずなので、ここで挿入する
|
||||||
const privateKey = await this.userKeypairService.getLocalUserKeypairWithKeyId(user.id, 'main');
|
const privateKey = await this.userKeypairService.getLocalUserKeypairWithKeyId(user.id, 'main');
|
||||||
manager.execute({ privateKey });
|
manager.execute({ privateKey });
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ export class UserSuspendService {
|
||||||
const content = this.apRendererService.addContext(this.apRendererService.renderUndo(this.apRendererService.renderDelete(this.userEntityService.genLocalUserUri(user.id), user), user));
|
const content = this.apRendererService.addContext(this.apRendererService.renderUndo(this.apRendererService.renderDelete(this.userEntityService.genLocalUserUri(user.id), user), user));
|
||||||
const manager = this.apDeliverManagerService.createDeliverManager(user, content);
|
const manager = this.apDeliverManagerService.createDeliverManager(user, content);
|
||||||
manager.addAllKnowingSharedInboxRecipe();
|
manager.addAllKnowingSharedInboxRecipe();
|
||||||
// process delivre時にはキーペアが消去されているはずなので、ここで挿入する
|
// process deliver時にはキーペアが消去されているはずなので、ここで挿入する
|
||||||
const privateKey = await this.userKeypairService.getLocalUserKeypairWithKeyId(user.id, 'main');
|
const privateKey = await this.userKeypairService.getLocalUserKeypairWithKeyId(user.id, 'main');
|
||||||
manager.execute({ privateKey });
|
manager.execute({ privateKey });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue