mirror of
1
Fork 0

Add ContentType to API models StatusSource and StatusEdit

This commit is contained in:
ewin 2025-03-03 13:40:52 -05:00
parent 2791a9951f
commit da31c5c617
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -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.