Merge pull request 'revert redundant host checks in ApResolver' (#47) from develop into master
Some checks failed
Lint / pnpm_install (push) Successful in 1m23s
Publish Docker image / Build (push) Successful in 4m23s
Test (production install and build) / production (22.11.0) (push) Successful in 1m0s
Test (backend) / unit (22.11.0) (push) Failing after 7m13s
Lint / lint (backend) (push) Failing after 2m34s
Lint / lint (frontend) (push) Failing after 2m20s
Lint / lint (frontend-embed) (push) Successful in 2m13s
Lint / lint (frontend-shared) (push) Successful in 2m3s
Lint / lint (misskey-bubble-game) (push) Successful in 2m18s
Lint / lint (misskey-js) (push) Successful in 2m22s
Lint / lint (sw) (push) Successful in 2m18s
Lint / lint (misskey-reversi) (push) Successful in 2m35s
Lint / typecheck (backend) (push) Successful in 2m17s
Lint / typecheck (sw) (push) Successful in 1m22s
Lint / typecheck (misskey-js) (push) Successful in 1m37s
Some checks failed
Lint / pnpm_install (push) Successful in 1m23s
Publish Docker image / Build (push) Successful in 4m23s
Test (production install and build) / production (22.11.0) (push) Successful in 1m0s
Test (backend) / unit (22.11.0) (push) Failing after 7m13s
Lint / lint (backend) (push) Failing after 2m34s
Lint / lint (frontend) (push) Failing after 2m20s
Lint / lint (frontend-embed) (push) Successful in 2m13s
Lint / lint (frontend-shared) (push) Successful in 2m3s
Lint / lint (misskey-bubble-game) (push) Successful in 2m18s
Lint / lint (misskey-js) (push) Successful in 2m22s
Lint / lint (sw) (push) Successful in 2m18s
Lint / lint (misskey-reversi) (push) Successful in 2m35s
Lint / typecheck (backend) (push) Successful in 2m17s
Lint / typecheck (sw) (push) Successful in 1m22s
Lint / typecheck (misskey-js) (push) Successful in 1m37s
Reviewed-on: #47
This commit is contained in:
commit
6671562ab7
1 changed files with 2 additions and 6 deletions
|
@ -129,12 +129,8 @@ export class Resolver {
|
||||||
throw new Error('invalid AP object: missing id');
|
throw new Error('invalid AP object: missing id');
|
||||||
}
|
}
|
||||||
|
|
||||||
const idURL = yumeAssertAcceptableURL(object.id);
|
yumeAssertAcceptableURL(object.id);
|
||||||
const valueURL = yumeAssertAcceptableURL(value);
|
yumeAssertAcceptableURL(value);
|
||||||
|
|
||||||
if (toASCII(idURL.host) !== toASCII(valueURL.host)) {
|
|
||||||
throw new Bull.UnrecoverableError(`invalid AP object ${value}: id ${object.id} has different host`);
|
|
||||||
}
|
|
||||||
|
|
||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue