From 86556f7913f6a9da9c4b0802f129120c5bc482b1 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 05:57:53 +0200 Subject: [PATCH] fix: wrong section --- packages/megalodon/src/misskey/api_client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index d103ed5da..d49a7b725 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -91,7 +91,7 @@ namespace MisskeyAPI { followers_count: u.followersCount ? u.followersCount : 0, following_count: u.followingCount ? u.followingCount : 0, statuses_count: u.notesCount ? u.notesCount : 0, - note: u.description ? u.description : '', + note: u.description !== null || undefined ? u.description as string : '', url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct, avatar: u.avatarUrl, avatar_static: u.avatarColor, @@ -127,7 +127,7 @@ namespace MisskeyAPI { followers_count: u.followersCount, following_count: u.followingCount, statuses_count: u.notesCount, - note: u.description !== null || undefined ? u.description : '', + note: u.description ? u.description : '', url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct, avatar: u.avatarUrl, avatar_static: u.avatarColor,