From aeefb843a8a688f8a356794e8981c58f8a2733af Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Sun, 2 Jul 2023 13:30:12 +0900 Subject: [PATCH] =?UTF-8?q?WIP(`ApImageService.ts`):=20`image.url`?= =?UTF-8?q?=E3=82=92`getApHrefNullable()`=E3=81=AB=E9=80=9A=E3=81=99?= =?UTF-8?q?=E3=81=8B=E3=81=A9=E3=81=86=E3=81=8B=E6=82=A9=E3=82=93=E3=81=A7?= =?UTF-8?q?=E3=81=84=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/activitypub/models/ApImageService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/core/activitypub/models/ApImageService.ts b/packages/backend/src/core/activitypub/models/ApImageService.ts index e0e219244f38..b563f2c35f5f 100644 --- a/packages/backend/src/core/activitypub/models/ApImageService.ts +++ b/packages/backend/src/core/activitypub/models/ApImageService.ts @@ -50,6 +50,8 @@ export class ApImageService { throw new Error('invalid image: url not privided'); } + // TODO? + // const url = getOneApHrefNullable(image.url); if (typeof image.url !== 'string') { throw new Error('invalid image: unexpected type of url: ' + JSON.stringify(image.url)); }