From 2b24550ce253bf6a4debeff3e6faca186f829daf Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 05:50:47 +0200 Subject: [PATCH] fix: typecheck --- packages/megalodon/src/misskey/api_client.ts | 2 +- packages/megalodon/src/misskey/entities/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index 9bec2a2f0e..d103ed5da0 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -127,7 +127,7 @@ namespace MisskeyAPI { followers_count: u.followersCount, following_count: u.followingCount, statuses_count: u.notesCount, - note: u.description ? u.description : '', + note: u.description !== null || undefined ? u.description : '', url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct, avatar: u.avatarUrl, avatar_static: u.avatarColor, diff --git a/packages/megalodon/src/misskey/entities/user.ts b/packages/megalodon/src/misskey/entities/user.ts index 350605f3f2..441e0056f4 100644 --- a/packages/megalodon/src/misskey/entities/user.ts +++ b/packages/megalodon/src/misskey/entities/user.ts @@ -5,7 +5,7 @@ namespace MisskeyEntity { id: string name: string username: string - description: string + description?: string createdAt?: string followingCount?: number followersCount?: number