Skip to content

Commit

Permalink
feat: set entry URL to rewritten URL if a rewrite rule is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantop authored Oct 14, 2024
1 parent ffe3ed4 commit 86c0cc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/reader/processor/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func ProcessFeedEntries(store *storage.Storage, feed *model.Feed, user *model.Us

pageBaseURL := ""
rewrittenURL := rewriteEntryURL(feed, entry)
entry.URL = rewrittenURL
entryIsNew := store.IsNewEntry(feed.ID, entry.Hash)
if feed.Crawler && (entryIsNew || forceRefresh) {
slog.Debug("Scraping entry",
Expand Down

0 comments on commit 86c0cc6

Please sign in to comment.