diff --git a/packages/backend/src/core/activitypub/ApResolverService.ts b/packages/backend/src/core/activitypub/ApResolverService.ts index 0ef7f5ad56..b3abcd0fb6 100644 --- a/packages/backend/src/core/activitypub/ApResolverService.ts +++ b/packages/backend/src/core/activitypub/ApResolverService.ts @@ -129,12 +129,8 @@ export class Resolver { throw new Error('invalid AP object: missing id'); } - const idURL = yumeAssertAcceptableURL(object.id); - const valueURL = yumeAssertAcceptableURL(value); - - if (toASCII(idURL.host) !== toASCII(valueURL.host)) { - throw new Bull.UnrecoverableError(`invalid AP object ${value}: id ${object.id} has different host`); - } + yumeAssertAcceptableURL(object.id); + yumeAssertAcceptableURL(value); return object; }