Use omitempty consistently on API models

This commit is contained in:
ewin 2025-03-05 18:19:38 -05:00
commit 187c5fdf23
No known key found for this signature in database

View file

@ -326,7 +326,7 @@ type StatusSource struct {
SpoilerText string `json:"spoiler_text"`
// Content type that was used to parse the text.
ContentType StatusContentType `json:"content_type"`
ContentType StatusContentType `json:"content_type,omitempty"`
}
// StatusEdit represents one historical revision of a status, containing