From c6b230414e26c066e49a9d3b34e6201be7d404b5 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 17 Apr 2024 10:18:01 -0400 Subject: [PATCH] Fix error decoding InstanceV2 response on certain instances --- Packages/Pachyderm/Sources/Pachyderm/Model/InstanceV2.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/Pachyderm/Sources/Pachyderm/Model/InstanceV2.swift b/Packages/Pachyderm/Sources/Pachyderm/Model/InstanceV2.swift index b1ebe70cf4..97bd355eb5 100644 --- a/Packages/Pachyderm/Sources/Pachyderm/Model/InstanceV2.swift +++ b/Packages/Pachyderm/Sources/Pachyderm/Model/InstanceV2.swift @@ -53,7 +53,7 @@ extension InstanceV2 { public struct Thumbnail: Decodable, Sendable { public let url: String public let blurhash: String? - public let versions: ThumbnailVersions + public let versions: ThumbnailVersions? } public struct ThumbnailVersions: Decodable, Sendable { @@ -120,6 +120,6 @@ extension InstanceV2 { extension InstanceV2 { public struct Contact: Decodable, Sendable { public let email: String - public let account: Account + public let account: Account? } }