revert redundant host checks in ApResolver #47

Merged
yume merged 1 commit from develop into master 2024-11-25 19:45:46 -06:00

View file

@ -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;
}