summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2023-12-31 15:49:57 -0700
committernytpu <alex@nytpu.com>2023-12-31 15:49:57 -0700
commitdd430cd9bc878efadb54e24a68beb0867da6af13 (patch)
tree8ed0774bf096d66f526bc2364c90656fa13e5d3d
parentcf20f5877ef1fa258849f8a283dbd4080a96eb83 (diff)
Recognize MIME type used for JSON feeds v1.1
Reported by Michael Nordmeyer
-rw-r--r--fetch/gemini.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/fetch/gemini.go b/fetch/gemini.go
index 2608468..1182629 100644
--- a/fetch/gemini.go
+++ b/fetch/gemini.go
@@ -109,7 +109,8 @@ func geminiFeed(data *core.FullData, remote string, title string) error {
"application/rss+xml",
"application/atom+xml",
"application/xml",
- "application/json":
+ "application/json",
+ "application/feed+json":
gofeed, err := gofeed.NewParser().Parse(reader)
if err != nil {
return err