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:
parent
997006cdd7
commit
6117a2f3cd
6 changed files with 347 additions and 305 deletions
|
@ -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)})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue