From cd26e3a35c6232f8001cf79117c1863447e8af3c Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 8 Jan 2023 19:34:03 +0100 Subject: [PATCH] fixup: missing parenthesis --- packages/backend/src/remote/activitypub/models/person.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/remote/activitypub/models/person.ts b/packages/backend/src/remote/activitypub/models/person.ts index 6704f8214..803fd03c9 100644 --- a/packages/backend/src/remote/activitypub/models/person.ts +++ b/packages/backend/src/remote/activitypub/models/person.ts @@ -90,10 +90,9 @@ function validateActor(x: IObject): IActor { throw new Error('invalid Actor: publicKey.id is not a string'); } - const publicKeyIdHost = extractDbHost(x.publicKey.id); // This is a security critical check to not insert or change an entry of // UserPublickey to point to a local key id. - if (extractDbHost(uri) !== extractDbHost(x.publicKey.id) { + if (extractDbHost(uri) !== extractDbHost(x.publicKey.id)) { throw new Error('invalid Actor: publicKey.id has different host'); } }