From c9208ae56c7a8b4846711674021de2c359c57755 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 14 Oct 2025 13:59:44 +0200 Subject: [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 Co-committed-by: kim --- internal/web/rss.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/web/rss.go') diff --git a/internal/web/rss.go b/internal/web/rss.go index d812ddc33..7fe941320 100644 --- a/internal/web/rss.go +++ b/internal/web/rss.go @@ -186,9 +186,9 @@ func (m *Module) rssFeedGETHandler(c *gin.Context) { // Encode response. switch contentType { case apiutil.AppRSSXML: - apiutil.XMLType(c, http.StatusOK, appRSSUTF8, &feeds.Rss{feed}) + apiutil.XMLType(c, http.StatusOK, appRSSUTF8, (&feeds.Rss{feed}).FeedXml()) case apiutil.AppAtomXML: - apiutil.XMLType(c, http.StatusOK, appAtomUTF8, &feeds.Atom{feed}) + apiutil.XMLType(c, http.StatusOK, appAtomUTF8, (&feeds.Atom{feed}).FeedXml()) case apiutil.AppFeedJSON, apiutil.AppJSON: apiutil.JSONType(c, http.StatusOK, appJSONUTF8, (&feeds.JSON{feed}).JSONFeed()) } -- cgit v1.2.3