|
|
@@ -9,6 +9,7 @@ import (
|
|
|
|
|
|
"miniflux.app/http/request"
|
|
|
"miniflux.app/http/response/json"
|
|
|
+ "miniflux.app/locale"
|
|
|
"miniflux.app/model"
|
|
|
"miniflux.app/proxy"
|
|
|
"miniflux.app/reader/processor"
|
|
|
@@ -64,5 +65,7 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) {
|
|
|
json.ServerError(w, r, err)
|
|
|
}
|
|
|
|
|
|
- json.OK(w, r, map[string]string{"content": proxy.ImageProxyRewriter(h.router, entry.Content)})
|
|
|
+ readingTime := locale.NewPrinter(user.Language).Plural("entry.estimated_reading_time", entry.ReadingTime, entry.ReadingTime)
|
|
|
+
|
|
|
+ json.OK(w, r, map[string]string{"content": proxy.ImageProxyRewriter(h.router, entry.Content), "reading_time": readingTime})
|
|
|
}
|