1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

feat: add option to always open articles externally

This commit is contained in:
Kelly Norton 2025-05-24 22:46:01 -04:00 committed by GitHub
parent 52b184394f
commit 09fb05aaaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 397 additions and 303 deletions

View file

@ -51,6 +51,11 @@ func (h *handler) showFeedEntryPage(w http.ResponseWriter, r *http.Request) {
entry.Status = model.EntryStatusRead
}
if user.AlwaysOpenExternalLinks {
html.Redirect(w, r, entry.URL)
return
}
entryPaginationBuilder := storage.NewEntryPaginationBuilder(h.store, user.ID, entry.ID, user.EntryOrder, user.EntryDirection)
entryPaginationBuilder.WithFeedID(feedID)
prevEntry, nextEntry, err := entryPaginationBuilder.Entries()