1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

fix(entry): update fetchContent response to use map[string]interface{} for correct type handling

This commit is contained in:
AiraNadih 2025-04-15 20:37:38 +00:00
parent a5980c156d
commit fc18540987

View file

@ -336,7 +336,7 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) {
return return
} }
json.OK(w, r, map[string]string{"content": mediaproxy.RewriteDocumentWithRelativeProxyURL(h.router, entry.Content), "reading_time": entry.ReadingTime}) json.OK(w, r, map[string]interface{}{"content": mediaproxy.RewriteDocumentWithRelativeProxyURL(h.router, entry.Content), "reading_time": entry.ReadingTime})
} }
func (h *handler) flushHistory(w http.ResponseWriter, r *http.Request) { func (h *handler) flushHistory(w http.ResponseWriter, r *http.Request) {