Recognize MIME type used for JSON feeds v1.1

Reported by Michael Nordmeyer
This commit is contained in:
nytpu
2023-12-31 15:49:57 -07:00
parent cf20f5877e
commit dd430cd9bc
+2 -1
View File
@@ -109,7 +109,8 @@ func geminiFeed(data *core.FullData, remote string, title string) error {
"application/rss+xml", "application/rss+xml",
"application/atom+xml", "application/atom+xml",
"application/xml", "application/xml",
"application/json": "application/json",
"application/feed+json":
gofeed, err := gofeed.NewParser().Parse(reader) gofeed, err := gofeed.NewParser().Parse(reader)
if err != nil { if err != nil {
return err return err