revert redundant host checks in ApResolver
Some checks failed
Lint / pnpm_install (push) Successful in 1m58s
Test (production install and build) / production (22.11.0) (push) Successful in 1m5s
Publish Docker image / Build (push) Successful in 5m0s
Lint / pnpm_install (pull_request) Successful in 1m11s
Publish Docker image / Build (pull_request) Successful in 4m22s
Test (backend) / unit (22.11.0) (push) Failing after 8m17s
Test (production install and build) / production (22.11.0) (pull_request) Successful in 1m15s
Test (backend) / unit (22.11.0) (pull_request) Failing after 7m23s
Lint / lint (backend) (push) Failing after 2m24s
Lint / lint (frontend) (push) Failing after 2m13s
Lint / lint (frontend-shared) (push) Successful in 2m23s
Lint / lint (frontend-embed) (push) Successful in 2m26s
Lint / lint (misskey-bubble-game) (push) Successful in 2m16s
Lint / lint (misskey-js) (push) Successful in 2m30s
Lint / lint (misskey-reversi) (push) Successful in 2m29s
Lint / lint (sw) (push) Successful in 2m19s
Lint / typecheck (misskey-js) (push) Successful in 1m23s
Lint / typecheck (backend) (push) Successful in 1m58s
Lint / typecheck (sw) (push) Successful in 1m27s
Lint / lint (backend) (pull_request) Failing after 2m13s
Lint / lint (frontend) (pull_request) Failing after 2m13s
Lint / lint (frontend-embed) (pull_request) Successful in 2m14s
Lint / lint (frontend-shared) (pull_request) Successful in 2m10s
Lint / lint (misskey-bubble-game) (pull_request) Successful in 2m4s
Lint / lint (misskey-js) (pull_request) Successful in 2m32s
Lint / lint (misskey-reversi) (pull_request) Successful in 2m14s
Lint / lint (sw) (pull_request) Successful in 2m6s
Lint / typecheck (backend) (pull_request) Successful in 2m3s
Lint / typecheck (misskey-js) (pull_request) Successful in 1m28s
Lint / typecheck (sw) (pull_request) Successful in 1m34s

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-25 19:43:40 -06:00
parent 70d5c713ca
commit 373eca7a19
No known key found for this signature in database

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