From 9801b20040a1285bd8d117d6dfdbf3802d16067c Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Mon, 3 Jul 2023 20:25:55 +0900 Subject: [PATCH] =?UTF-8?q?cleanup(`ApPersonService.ts`):=20=E4=B8=8D?= =?UTF-8?q?=E8=A6=81=E3=81=AA`as`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/src/core/activitypub/models/ApPersonService.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index e21dd0eac7..8b5d19371d 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -8,7 +8,6 @@ import { UserNotePining } from '@/models/entities/UserNotePining.js'; import type { LocalUser, RemoteUser } from '@/models/entities/User.js'; import { User } from '@/models/entities/User.js'; import type { Note } from '@/models/entities/Note.js'; -import type { Emoji } from '@/models/entities/Emoji.js'; import { truncate } from '@/misc/truncate.js'; import { StatusError } from '@/misc/status-error.js'; import { toArray } from '@/misc/prelude/array.js'; @@ -374,7 +373,7 @@ export class ApPersonService implements OnModuleInit { //#region カスタム絵文字取得 const emojis = await this.apNoteService.extractEmojis(person.tag ?? [], host).catch(err => { this.logger.info(`extractEmojis: ${err}`); - return [] as Emoji[]; + return []; }); const emojiNames = emojis.map(emoji => emoji.name); @@ -432,8 +431,8 @@ export class ApPersonService implements OnModuleInit { // カスタム絵文字取得 const emojis = await this.apNoteService.extractEmojis(person.tag ?? [], exist.host).catch(e => { this.logger.info(`extractEmojis: ${e}`); - return [] as Emoji[]; - }); + return []; + }); const emojiNames = emojis.map(emoji => emoji.name);