mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-10 06:42:53 +01:00
!== true
This commit is contained in:
parent
7a334a5e28
commit
821a79ff28
2 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ export class InboxProcessorService {
|
|||
});
|
||||
|
||||
// また、signatureのsignerは、activity.actorと一致する必要がある
|
||||
if (!httpSignatureValidated || authUser.user.uri !== activity.actor) {
|
||||
if (httpSignatureValidated !== true || authUser.user.uri !== activity.actor) {
|
||||
// 一致しなくても、でもLD-Signatureがありそうならそっちも見る
|
||||
if (activity.signature?.creator) {
|
||||
if (activity.signature.type !== 'RsaSignature2017') {
|
||||
|
|
|
@ -103,7 +103,7 @@ export class ActivityPubServerService {
|
|||
let signature: ReturnType<typeof parseRequestSignature>;
|
||||
|
||||
const verifyDigest = await verifyDigestHeader(request.raw, request.rawBody || '', true);
|
||||
if (!verifyDigest) {
|
||||
if (verifyDigest !== true) {
|
||||
reply.code(401);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue