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:
parent
52b184394f
commit
09fb05aaaf
36 changed files with 397 additions and 303 deletions
|
@ -50,6 +50,11 @@ func (h *handler) showSearchEntryPage(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.WithSearchQuery(searchQuery)
|
||||
prevEntry, nextEntry, err := entryPaginationBuilder.Entries()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue