fix: set boolean to true if uri doesn't match activity actor
This commit is contained in:
parent
71b7c31958
commit
c76f0f1679
|
@ -108,7 +108,7 @@ export class InboxProcessorService {
|
||||||
|
|
||||||
// また、signatureのsignerは、activity.actorと一致する必要がある
|
// また、signatureのsignerは、activity.actorと一致する必要がある
|
||||||
if (!httpSignatureValidated || authUser.user.uri !== activity.actor) {
|
if (!httpSignatureValidated || authUser.user.uri !== activity.actor) {
|
||||||
let renewKeyFailed = false;
|
let renewKeyFailed = authUser.user.uri !== activity.actor ? true : false;
|
||||||
|
|
||||||
if (!httpSignatureValidated) {
|
if (!httpSignatureValidated) {
|
||||||
authUser.key = await this.apDbResolverService.refetchPublicKeyForApId(authUser.user);
|
authUser.key = await this.apDbResolverService.refetchPublicKeyForApId(authUser.user);
|
||||||
|
|
Loading…
Reference in New Issue