From b94ae90d7fa2d5271bf267078ed90b1b4ccd38e0 Mon Sep 17 00:00:00 2001 From: mormaer Date: Thu, 14 Sep 2023 16:06:42 +0100 Subject: [PATCH] fix - allow `.admin` value on `APIPerson` to be considered optional (#600) --- Mlem/API/Models/Person/APIPerson.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mlem/API/Models/Person/APIPerson.swift b/Mlem/API/Models/Person/APIPerson.swift index abfa464de..a61b0f4ef 100644 --- a/Mlem/API/Models/Person/APIPerson.swift +++ b/Mlem/API/Models/Person/APIPerson.swift @@ -23,7 +23,7 @@ struct APIPerson: Decodable, Identifiable, Hashable { let deleted: Bool let sharedInboxUrl: URL? let matrixUserId: String? - let admin: Bool + let admin: Bool? // this is no longer returned on beehaw... let botAccount: Bool let banExpires: Date? let instanceId: Int