diff options
| author | misskey-release-bot[bot] <157398866+misskey-release-bot[bot]@users.noreply.github.com> | 2025-04-09 02:17:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-09 02:17:31 +0000 |
| commit | 3c3982464fb827720e3bc456ab3605e0a139da25 (patch) | |
| tree | cb5045fcfa8cb7950bdbd0e8a645333299354e11 /packages/backend/src/core/HttpRequestService.ts | |
| parent | Merge pull request #15615 from misskey-dev/develop (diff) | |
| parent | Release: 2025.4.0 (diff) | |
| download | misskey-3c3982464fb827720e3bc456ab3605e0a139da25.tar.gz misskey-3c3982464fb827720e3bc456ab3605e0a139da25.tar.bz2 misskey-3c3982464fb827720e3bc456ab3605e0a139da25.zip | |
Merge pull request #15735 from misskey-dev/develop
Release: 2025.4.0
Diffstat (limited to 'packages/backend/src/core/HttpRequestService.ts')
| -rw-r--r-- | packages/backend/src/core/HttpRequestService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/HttpRequestService.ts b/packages/backend/src/core/HttpRequestService.ts index 13d8f7f43b..3ddfe52045 100644 --- a/packages/backend/src/core/HttpRequestService.ts +++ b/packages/backend/src/core/HttpRequestService.ts @@ -16,7 +16,7 @@ import type { Config } from '@/config.js'; import { StatusError } from '@/misc/status-error.js'; import { bindThis } from '@/decorators.js'; import { validateContentTypeSetAsActivityPub } from '@/core/activitypub/misc/validator.js'; -import { assertActivityMatchesUrls, FetchAllowSoftFailMask } from '@/core/activitypub/misc/check-against-url.js'; +import { assertActivityMatchesUrl, FetchAllowSoftFailMask } from '@/core/activitypub/misc/check-against-url.js'; import type { IObject } from '@/core/activitypub/type.js'; import type { Response } from 'node-fetch'; import type { URL } from 'node:url'; @@ -265,7 +265,7 @@ export class HttpRequestService { const finalUrl = res.url; // redirects may have been involved const activity = await res.json() as IObject; - assertActivityMatchesUrls(url, activity, [finalUrl], allowSoftfail); + assertActivityMatchesUrl(url, activity, finalUrl, allowSoftfail); return activity; } |