mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
feat: set entry URL to rewritten URL if a rewrite rule is defined
This commit is contained in:
parent
ffe3ed4b9a
commit
86c0cc61ba
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ func ProcessFeedEntries(store *storage.Storage, feed *model.Feed, user *model.Us
|
||||||
|
|
||||||
pageBaseURL := ""
|
pageBaseURL := ""
|
||||||
rewrittenURL := rewriteEntryURL(feed, entry)
|
rewrittenURL := rewriteEntryURL(feed, entry)
|
||||||
|
entry.URL = rewrittenURL
|
||||||
entryIsNew := store.IsNewEntry(feed.ID, entry.Hash)
|
entryIsNew := store.IsNewEntry(feed.ID, entry.Hash)
|
||||||
if feed.Crawler && (entryIsNew || forceRefresh) {
|
if feed.Crawler && (entryIsNew || forceRefresh) {
|
||||||
slog.Debug("Scraping entry",
|
slog.Debug("Scraping entry",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue