mirror of https://github.com/miniflux/v2.git
Apply rewriter rules on manual "Fetch Original Content"
This commit is contained in:
parent
b51e7ea448
commit
52de36b158
|
@ -6,10 +6,10 @@ package ui // import "miniflux.app/ui"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/http/response/json"
|
||||||
"miniflux.app/model"
|
"miniflux.app/model"
|
||||||
|
"miniflux.app/reader/rewrite"
|
||||||
"miniflux.app/reader/sanitizer"
|
"miniflux.app/reader/sanitizer"
|
||||||
"miniflux.app/reader/scraper"
|
"miniflux.app/reader/scraper"
|
||||||
)
|
)
|
||||||
|
@ -37,6 +37,8 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
content = rewrite.Rewriter(entry.URL, content, entry.Feed.RewriteRules)
|
||||||
|
|
||||||
entry.Content = sanitizer.Sanitize(entry.URL, content)
|
entry.Content = sanitizer.Sanitize(entry.URL, content)
|
||||||
h.store.UpdateEntryContent(entry)
|
h.store.UpdateEntryContent(entry)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue