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

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);