diff options
| author | Shun Sakai <sorairolake@protonmail.ch> | 2023-07-27 14:31:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-27 14:31:52 +0900 |
| commit | c2370a1be631355e709c47d3b5e9469906116b84 (patch) | |
| tree | 75071c994f444f3ceea6ad0225e09b9374ca02ca /packages/backend/src/core/FetchInstanceMetadataService.ts | |
| parent | chore: update pnpm to 8.6.10 (diff) | |
| download | sharkey-c2370a1be631355e709c47d3b5e9469906116b84.tar.gz sharkey-c2370a1be631355e709c47d3b5e9469906116b84.tar.bz2 sharkey-c2370a1be631355e709c47d3b5e9469906116b84.zip | |
chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348)
* chore: Add the SPDX information to each file
Add copyright and licensing information as defined in version 3.0 of
the REUSE Specification.
* tweak format
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/backend/src/core/FetchInstanceMetadataService.ts')
| -rw-r--r-- | packages/backend/src/core/FetchInstanceMetadataService.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/backend/src/core/FetchInstanceMetadataService.ts b/packages/backend/src/core/FetchInstanceMetadataService.ts index 88706f1a48..cf3ebbebfa 100644 --- a/packages/backend/src/core/FetchInstanceMetadataService.ts +++ b/packages/backend/src/core/FetchInstanceMetadataService.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: syuilo and other misskey contributors + * SPDX-License-Identifier: AGPL-3.0-only + */ + import { URL } from 'node:url'; import { Inject, Injectable } from '@nestjs/common'; import { JSDOM } from 'jsdom'; @@ -70,9 +75,9 @@ export class FetchInstanceMetadataService { return; } } - + this.logger.info(`Fetching metadata of ${instance.host} ...`); - + const [info, dom, manifest] = await Promise.all([ this.fetchNodeinfo(instance).catch(() => null), this.fetchDom(instance).catch(() => null), |