From 607a3e7427ccce9802ff8680ca38c892842fd891 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 16:08:31 +0200 Subject: [PATCH] fix: return empty emoji list for polls for masto app --- packages/megalodon/src/entities/poll.ts | 1 + packages/megalodon/src/misskey/api_client.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/megalodon/src/entities/poll.ts b/packages/megalodon/src/entities/poll.ts index 69706e8ae..7e85bd55b 100644 --- a/packages/megalodon/src/entities/poll.ts +++ b/packages/megalodon/src/entities/poll.ts @@ -9,5 +9,6 @@ namespace Entity { votes_count: number options: Array voted: boolean + emojis?: [] } } diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index a23264b21..854c31222 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -254,6 +254,7 @@ namespace MisskeyAPI { votes_count: count, options: Array.isArray(p.choices) ? p.choices.map(c => choice(c)) : [], voted: Array.isArray(p.choices) ? p.choices.some(c => c.isVoted) : false, + emojis: [], } }