aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui
diff options
context:
space:
mode:
authorGravatar djbshfbzehr <djbshfbzehr@outlook.fr>2018-12-03 05:29:44 +0100
committerGravatar fguillot <fred@miniflux.net>2018-12-02 20:29:44 -0800
commit52de36b158ab2340d2c206adabb7568d036f1aa2 (patch)
tree5aea5f24b327243723dce698249ec04d3bd8403a /ui
parentb51e7ea448bc40b4737bb3747dee666ea25dbd2a (diff)
Apply rewriter rules on manual "Fetch Original Content"
Diffstat (limited to 'ui')
-rw-r--r--ui/entry_scraper.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/entry_scraper.go b/ui/entry_scraper.go
index 519bfd2..48fb7db 100644
--- a/ui/entry_scraper.go
+++ b/ui/entry_scraper.go
@@ -6,10 +6,10 @@ package ui // import "miniflux.app/ui"
import (
"net/http"
-
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
+ "miniflux.app/reader/rewrite"
"miniflux.app/reader/sanitizer"
"miniflux.app/reader/scraper"
)
@@ -36,6 +36,8 @@ func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) {
json.ServerError(w, r, err)
return
}
+
+ content = rewrite.Rewriter(entry.URL, content, entry.Feed.RewriteRules)
entry.Content = sanitizer.Sanitize(entry.URL, content)
h.store.UpdateEntryContent(entry)