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

feat: read external links

This commit is contained in:
Kelly Norton 2025-05-17 13:39:25 -04:00
parent 52b184394f
commit 562abeb997
36 changed files with 397 additions and 303 deletions

View file

@ -48,6 +48,11 @@ func (h *handler) showStarredEntryPage(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.WithStarred()
prevEntry, nextEntry, err := entryPaginationBuilder.Entries()