From 187c5fdf23da7fcdea5ca9b232a07fc22fbd31ab Mon Sep 17 00:00:00 2001 From: ewin Date: Wed, 5 Mar 2025 18:19:38 -0500 Subject: [PATCH] Use omitempty consistently on API models --- internal/api/model/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/model/status.go b/internal/api/model/status.go index d5fec77a7..fe82f09e3 100644 --- a/internal/api/model/status.go +++ b/internal/api/model/status.go @@ -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