Fix editing Markdown/HTML statuses

This commit is contained in:
Shadowfacts 2023-05-14 17:46:10 -04:00
parent 1cf7434918
commit de53e0dcd6
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ struct EditStatusParameters: Encodable, Sendable {
var container = encoder.container(keyedBy: CodingKeys.self) var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(self.id, forKey: .id) try container.encode(self.id, forKey: .id)
try container.encode(self.text, forKey: .text) 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.encodeIfPresent(self.spoilerText, forKey: .spoilerText)
try container.encode(self.sensitive, forKey: .sensitive) try container.encode(self.sensitive, forKey: .sensitive)
try container.encodeIfPresent(self.language, forKey: .language) try container.encodeIfPresent(self.language, forKey: .language)