diff options
author | 2024-03-20 20:59:09 -0700 | |
---|---|---|
committer | 2024-03-20 21:28:28 -0700 | |
commit | c2311e316c6f7ca109531cb3ad55ada19772800a (patch) | |
tree | 405ab94e57908a589f1871c32b956ed17a77a9fb /internal/ui/entry_scraper.go | |
parent | ed2077119491bcc198ae84df5b1b1ed6f13f78f1 (diff) | |
download | v2-c2311e316c6f7ca109531cb3ad55ada19772800a.tar.gz v2-c2311e316c6f7ca109531cb3ad55ada19772800a.tar.zst v2-c2311e316c6f7ca109531cb3ad55ada19772800a.zip |
Rename PROXY_* options to MEDIA_PROXY_*
Diffstat (limited to 'internal/ui/entry_scraper.go')
-rw-r--r-- | internal/ui/entry_scraper.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ui/entry_scraper.go b/internal/ui/entry_scraper.go index ad442b16..8eaaffc0 100644 --- a/internal/ui/entry_scraper.go +++ b/internal/ui/entry_scraper.go @@ -9,8 +9,8 @@ import ( "miniflux.app/v2/internal/http/request" "miniflux.app/v2/internal/http/response/json" "miniflux.app/v2/internal/locale" + "miniflux.app/v2/internal/mediaproxy" "miniflux.app/v2/internal/model" - "miniflux.app/v2/internal/proxy" "miniflux.app/v2/internal/reader/processor" "miniflux.app/v2/internal/storage" ) @@ -65,5 +65,5 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) { readingTime := locale.NewPrinter(user.Language).Plural("entry.estimated_reading_time", entry.ReadingTime, entry.ReadingTime) - json.OK(w, r, map[string]string{"content": proxy.ProxyRewriter(h.router, entry.Content), "reading_time": readingTime}) + json.OK(w, r, map[string]string{"content": mediaproxy.RewriteDocumentWithRelativeProxyURL(h.router, entry.Content), "reading_time": readingTime}) } |