From b0b96f00b9f36f9971c6e0bb95de431af2d36654 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 15:57:50 +0200 Subject: [PATCH] upd: on no quote return false instead of null --- packages/megalodon/src/entities/status.ts | 2 +- packages/megalodon/src/misskey/api_client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/megalodon/src/entities/status.ts b/packages/megalodon/src/entities/status.ts index fd44d9989..8842981eb 100644 --- a/packages/megalodon/src/entities/status.ts +++ b/packages/megalodon/src/entities/status.ts @@ -38,7 +38,7 @@ namespace Entity { language: string | null pinned: boolean | null emoji_reactions: Array - quote: Status | boolean | null + quote: Status | boolean bookmarked: boolean } diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index 38444e7a4..9ca714e22 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -299,7 +299,7 @@ namespace MisskeyAPI { pinned: null, emoji_reactions: typeof n.reactions === 'object' ? mapReactions(n.reactions, n.myReaction) : [], bookmarked: false, - quote: n.renote && n.text ? note(n.renote, host) : null + quote: n.renote && n.text ? note(n.renote, host) : false } }