diff --git a/packages/backend/src/core/activitypub/ApResolverService.ts b/packages/backend/src/core/activitypub/ApResolverService.ts index e61cc90b4..ddb56fa39 100644 --- a/packages/backend/src/core/activitypub/ApResolverService.ts +++ b/packages/backend/src/core/activitypub/ApResolverService.ts @@ -120,18 +120,6 @@ export class Resolver { throw new Error('invalid response'); } - // HttpRequestService / ApRequestService have already checked that - // `object.id` or `object.url` matches the URL used to fetch the - // object after redirects; here we double-check that no redirects - // bounced between hosts - if (object.id == null) { - throw new Error('invalid AP object: missing id'); - } - - if (!this.utilityService.isRelatedUris(object.id, value)) { - throw new Error(`invalid AP object ${value}: id ${object.id} has unrelated host`); - } - return object; }