summaryrefslogtreecommitdiff
path: root/packages/backend
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-01-24 08:32:17 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-01-24 08:32:17 +0900
commit869854eae736cf5c910f533191ea0d1f7c9755dd (patch)
treee1bf7d49be1991df13f9aea8151dbb914c09533c /packages/backend
parentrefactor(server): httpRequestServiceのUndiciFetcher依存をなるべくカ... (diff)
downloadsharkey-869854eae736cf5c910f533191ea0d1f7c9755dd.tar.gz
sharkey-869854eae736cf5c910f533191ea0d1f7c9755dd.tar.bz2
sharkey-869854eae736cf5c910f533191ea0d1f7c9755dd.zip
コミット漏れ
Diffstat (limited to 'packages/backend')
-rw-r--r--packages/backend/src/core/DownloadService.ts1
-rw-r--r--packages/backend/src/core/activitypub/ApRequestService.ts10
2 files changed, 5 insertions, 6 deletions
diff --git a/packages/backend/src/core/DownloadService.ts b/packages/backend/src/core/DownloadService.ts
index e4632f857a..c5b2bcaef4 100644
--- a/packages/backend/src/core/DownloadService.ts
+++ b/packages/backend/src/core/DownloadService.ts
@@ -4,7 +4,6 @@ import * as util from 'node:util';
import { Inject, Injectable } from '@nestjs/common';
import IPCIDR from 'ip-cidr';
import PrivateIp from 'private-ip';
-import got, * as Got from 'got';
import chalk from 'chalk';
import { buildConnector } from 'undici';
import { DI } from '@/di-symbols.js';
diff --git a/packages/backend/src/core/activitypub/ApRequestService.ts b/packages/backend/src/core/activitypub/ApRequestService.ts
index ab22a0c411..fd7319702e 100644
--- a/packages/backend/src/core/activitypub/ApRequestService.ts
+++ b/packages/backend/src/core/activitypub/ApRequestService.ts
@@ -41,10 +41,10 @@ export class ApRequestService {
private httpRequestService: HttpRequestService,
private loggerService: LoggerService,
) {
- this.logger = this.loggerService?.getLogger('ap-request'); // なぜか TypeError: Cannot read properties of undefined (reading 'getLogger') と言われる
- this.undiciFetcher = new UndiciFetcher(this.httpRequestService.getStandardUndiciFetcherOption({
+ this.logger = this.loggerService.getLogger('ap-request'); // なぜか TypeError: Cannot read properties of undefined (reading 'getLogger') と言われる
+ this.undiciFetcher = this.httpRequestService.createFetcher({
maxRedirections: 0,
- }), this.logger );
+ }, {}, this.logger);
}
@bindThis
@@ -169,7 +169,7 @@ export class ApRequestService {
method: req.request.method,
headers: req.request.headers,
body,
- }
+ },
);
}
@@ -197,7 +197,7 @@ export class ApRequestService {
{
method: req.request.method,
headers: req.request.headers,
- }
+ },
);
return await res.json();