Add ContentType to API models StatusSource and StatusEdit
This commit is contained in:
parent
2791a9951f
commit
da31c5c617
|
@ -320,6 +320,9 @@ type StatusSource struct {
|
||||||
|
|
||||||
// Plain-text version of spoiler text.
|
// Plain-text version of spoiler text.
|
||||||
SpoilerText string `json:"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
|
// 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.
|
// Custom emoji to be used when rendering status content.
|
||||||
Emojis []Emoji `json:"emojis"`
|
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.
|
// StatusEditRequest models status edit parameters.
|
||||||
|
|
Loading…
Reference in New Issue