From da31c5c6178c039d904773f6801d02b29c12d1d2 Mon Sep 17 00:00:00 2001 From: ewin Date: Mon, 3 Mar 2025 13:40:52 -0500 Subject: [PATCH] Add ContentType to API models StatusSource and StatusEdit --- internal/api/model/status.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/api/model/status.go b/internal/api/model/status.go index 2ee3123e6..09a3605f1 100644 --- a/internal/api/model/status.go +++ b/internal/api/model/status.go @@ -320,6 +320,9 @@ type StatusSource struct { // Plain-text version of spoiler text. SpoilerText string `json:"spoiler_text"` + + // Content type that was used to parse the text. + ContentType StatusContentType `json:"content_type"` } // StatusEdit represents one historical revision of a status, containing @@ -358,6 +361,9 @@ type StatusEdit struct { // Custom emoji to be used when rendering status content. Emojis []Emoji `json:"emojis"` + + // Content type that was used to parse this revision's text. + ContentType StatusContentType `json:"content_type"` } // StatusEditRequest models status edit parameters.