diff options
| author | 2025-10-14 13:59:44 +0200 | |
|---|---|---|
| committer | 2025-10-17 15:33:20 +0200 | |
| commit | c9208ae56c7a8b4846711674021de2c359c57755 (patch) | |
| tree | 6133efd6d61f2c30eb691af14c650c322806cfdf /internal/api | |
| parent | [feature] granular admin scopes for custom emojis (#4489) (diff) | |
| download | gotosocial-c9208ae56c7a8b4846711674021de2c359c57755.tar.xz | |
[bugfix] rss feed validation (#4499)
without those final `.FeedXml()` calls the feed objects weren't getting wrapped in the required top-level object with the XML namespace definition
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4499
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'internal/api')
| -rw-r--r-- | internal/api/util/response.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/util/response.go b/internal/api/util/response.go index ff58b68e3..b994abcca 100644 --- a/internal/api/util/response.go +++ b/internal/api/util/response.go @@ -197,6 +197,7 @@ func EncodeXMLResponse( // Wrap buffer in XML encoder. enc := xml.NewEncoder(buf) + enc.Indent("", " ") // Encode JSON data into byte buffer. if err := enc.Encode(data); err == nil { |
