mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Apply rewriter rules on manual "Fetch Original Content"
This commit is contained in:
parent
b51e7ea448
commit
52de36b158
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -36,6 +36,8 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) {
|
||||||
json.ServerError(w, r, err)
|
json.ServerError(w, r, err)
|
||||||
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…
Add table
Add a link
Reference in a new issue