From 3bd784eac2a6a5ecde0c56f65aad1e053f1a2b42 Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Mon, 3 Jul 2023 06:13:39 +0900 Subject: [PATCH] =?UTF-8?q?cleanup(`ApNoteService.ts`):=20`any`=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E3=81=99=E3=82=8Bnon-null=20assertion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/core/activitypub/models/ApNoteService.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/backend/src/core/activitypub/models/ApNoteService.ts b/packages/backend/src/core/activitypub/models/ApNoteService.ts index ff3ced0adc..1a05a376d6 100644 --- a/packages/backend/src/core/activitypub/models/ApNoteService.ts +++ b/packages/backend/src/core/activitypub/models/ApNoteService.ts @@ -343,15 +343,15 @@ export class ApNoteService { if ((exists.updatedAt == null) || (tag.id != null && exists.uri == null) || (new Date(tag.updated) > exists.updatedAt) - || (tag.icon!.url !== exists.originalUrl) + || (tag.icon.url !== exists.originalUrl) ) { await this.emojisRepository.update({ host, name, }, { uri: tag.id, - originalUrl: tag.icon!.url, - publicUrl: tag.icon!.url, + originalUrl: tag.icon.url, + publicUrl: tag.icon.url, updatedAt: new Date(), }); @@ -370,8 +370,8 @@ export class ApNoteService { host, name, uri: tag.id, - originalUrl: tag.icon!.url, - publicUrl: tag.icon!.url, + originalUrl: tag.icon.url, + publicUrl: tag.icon.url, updatedAt: new Date(), aliases: [], }).then(x => this.emojisRepository.findOneByOrFail(x.identifiers[0]));