From de53e0dcd6f8efacc202dc2ff598998ec935adde Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 14 May 2023 17:46:10 -0400 Subject: [PATCH] Fix editing Markdown/HTML statuses --- .../Sources/Pachyderm/Model/EditStatusParameters.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/Pachyderm/Sources/Pachyderm/Model/EditStatusParameters.swift b/Packages/Pachyderm/Sources/Pachyderm/Model/EditStatusParameters.swift index 73c8da7d..f787913d 100644 --- a/Packages/Pachyderm/Sources/Pachyderm/Model/EditStatusParameters.swift +++ b/Packages/Pachyderm/Sources/Pachyderm/Model/EditStatusParameters.swift @@ -22,7 +22,7 @@ struct EditStatusParameters: Encodable, Sendable { var container = encoder.container(keyedBy: CodingKeys.self) try container.encode(self.id, forKey: .id) try container.encode(self.text, forKey: .text) - try container.encode(self.contentType, forKey: .contentType) + try container.encode(self.contentType.mimeType, forKey: .contentType) try container.encodeIfPresent(self.spoilerText, forKey: .spoilerText) try container.encode(self.sensitive, forKey: .sensitive) try container.encodeIfPresent(self.language, forKey: .language)