mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
!== true
This commit is contained in:
parent
7a334a5e28
commit
821a79ff28
@ -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 New Issue
Block a user