fix: set boolean to true if uri doesn't match activity actor

This commit is contained in:
Mar0xy 2023-10-20 12:53:14 +02:00
parent 71b7c31958
commit c76f0f1679
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export class InboxProcessorService {
// また、signatureのsignerは、activity.actorと一致する必要がある
if (!httpSignatureValidated || authUser.user.uri !== activity.actor) {
let renewKeyFailed = false;
let renewKeyFailed = authUser.user.uri !== activity.actor ? true : false;
if (!httpSignatureValidated) {
authUser.key = await this.apDbResolverService.refetchPublicKeyForApId(authUser.user);