From ce14b758b3d6a73fc38b25cc6a90dd0152df17ff Mon Sep 17 00:00:00 2001 From: fly_mc Date: Wed, 27 Nov 2024 03:04:45 +0800 Subject: [PATCH] backend: removed AP obj different host check --- packages/backend/src/core/activitypub/ApResolverService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/activitypub/ApResolverService.ts b/packages/backend/src/core/activitypub/ApResolverService.ts index 5d84cda23..42391d726 100644 --- a/packages/backend/src/core/activitypub/ApResolverService.ts +++ b/packages/backend/src/core/activitypub/ApResolverService.ts @@ -131,9 +131,9 @@ export class Resolver { throw new Error('invalid AP object: missing id'); } - if (this.utilityService.punyHost(object.id) !== this.utilityService.punyHost(value)) { - throw new Error(`invalid AP object ${value}: id ${object.id} has different host`); - } + // if (this.utilityService.punyHost(object.id) !== this.utilityService.punyHost(value)) { + // throw new Error(`invalid AP object ${value}: id ${object.id} has different host`); + // } return object; }