Fix error decoding InstanceV2 response on certain instances

This commit is contained in:
Shadowfacts 2024-04-17 10:18:01 -04:00
parent f5e9f66f76
commit c6b230414e
1 changed files with 2 additions and 2 deletions

View File

@ -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?
}
}