From 945331944f6a821e1712105041c0187211b373b8 Mon Sep 17 00:00:00 2001 From: CMK Date: Thu, 4 Feb 2021 15:28:25 +0800 Subject: [PATCH] fix: poll option entity decode issue --- .../Sources/MastodonSDK/Entity/Mastodon+Entity+Poll.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MastodonSDK/Sources/MastodonSDK/Entity/Mastodon+Entity+Poll.swift b/MastodonSDK/Sources/MastodonSDK/Entity/Mastodon+Entity+Poll.swift index a9ed197fc..5a672e014 100644 --- a/MastodonSDK/Sources/MastodonSDK/Entity/Mastodon+Entity+Poll.swift +++ b/MastodonSDK/Sources/MastodonSDK/Entity/Mastodon+Entity+Poll.swift @@ -13,7 +13,7 @@ extension Mastodon.Entity { /// - Since: 2.8.0 /// - Version: 3.3.0 /// # Last Update - /// 2021/1/28 + /// 2021/2/4 /// # Reference /// [Document](https://docs.joinmastodon.org/entities/poll/) public struct Poll: Codable { @@ -51,7 +51,7 @@ extension Mastodon.Entity.Poll { public let title: String /// nil if results are not published yet public let votesCount: Int? - public let emojis: [Mastodon.Entity.Emoji] + public let emojis: [Mastodon.Entity.Emoji]? enum CodingKeys: String, CodingKey { case title