1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-31 18:31:01 +00:00

Display option to hide feed only when category is not already hidden

This commit is contained in:
Jan-Lukas Else 2021-08-16 11:23:52 +02:00 committed by fguillot
parent ce6fa4c0fc
commit b58a46455b
4 changed files with 8 additions and 1 deletions

View file

@ -59,6 +59,7 @@ func (h *handler) showEditFeedPage(w http.ResponseWriter, r *http.Request) {
FetchViaProxy: feed.FetchViaProxy,
Disabled: feed.Disabled,
HideGlobally: feed.HideGlobally,
CategoryHidden: feed.Category.HideGlobally,
}
sess := session.New(h.store, request.SessionID(r))

View file

@ -31,6 +31,7 @@ type FeedForm struct {
FetchViaProxy bool
Disabled bool
HideGlobally bool
CategoryHidden bool // Category has "hide_globally"
}
// Merge updates the fields of the given feed.