when processing an activity, refetch the user's public key if they don't already have one
This commit is contained in:
parent
58751020c8
commit
4a1693776f
1 changed files with 6 additions and 1 deletions
|
|
@ -164,7 +164,12 @@ export class InboxProcessorService implements OnApplicationShutdown {
|
|||
|
||||
// publicKey がなくても終了
|
||||
if (authUser.key == null) {
|
||||
throw new Bull.UnrecoverableError(`skip: failed to resolve user publicKey ${actorId}`);
|
||||
// See if a key has become available since we fetched the actor
|
||||
authUser.key = await this.apDbResolverService.refetchPublicKeyForApId(authUser.user);
|
||||
if (authUser.key == null) {
|
||||
// If it's still missing, then give up
|
||||
throw new Bull.UnrecoverableError(`skip: failed to resolve user publicKey ${actorId}`);
|
||||
}
|
||||
}
|
||||
|
||||
// HTTP-Signatureの検証
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue