From a5980c156df8e48e9a02a081498c2a1e88081432 Mon Sep 17 00:00:00 2001 From: AiraNadih <128119996+AiraNadih@users.noreply.github.com> Date: Tue, 15 Apr 2025 20:20:06 +0000 Subject: [PATCH] fix(entry): add reading time field in `fetchContent` response --- internal/api/entry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/entry.go b/internal/api/entry.go index d08eb721..e6158c30 100644 --- a/internal/api/entry.go +++ b/internal/api/entry.go @@ -336,7 +336,7 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) { return } - json.OK(w, r, map[string]string{"content": mediaproxy.RewriteDocumentWithRelativeProxyURL(h.router, entry.Content)}) + json.OK(w, r, map[string]string{"content": mediaproxy.RewriteDocumentWithRelativeProxyURL(h.router, entry.Content), "reading_time": entry.ReadingTime}) } func (h *handler) flushHistory(w http.ResponseWriter, r *http.Request) {