1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Proxify articles crawled manually

This commit is contained in:
Frédéric Guillot 2020-10-07 22:21:45 -07:00
parent 997006cdd7
commit 6117a2f3cd
6 changed files with 347 additions and 305 deletions

View file

@ -10,6 +10,7 @@ import (
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
"miniflux.app/proxy"
"miniflux.app/reader/processor"
)
@ -37,5 +38,5 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) {
h.store.UpdateEntryContent(entry)
json.OK(w, r, map[string]string{"content": entry.Content})
json.OK(w, r, map[string]string{"content": proxy.ImageProxyRewriter(h.router, entry.Content)})
}