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

Apprise Service Urls per feed

This commit is contained in:
fuchsrot 2023-08-26 09:16:41 +02:00 committed by Frédéric Guillot
parent 939a91e99d
commit 32d33104a4
27 changed files with 58 additions and 8 deletions

View file

@ -33,6 +33,7 @@ type FeedForm struct {
NoMediaPlayer bool
HideGlobally bool
CategoryHidden bool // Category has "hide_globally"
AppriseServiceURLs string
}
// Merge updates the fields of the given feed.
@ -59,6 +60,7 @@ func (f FeedForm) Merge(feed *model.Feed) *model.Feed {
feed.Disabled = f.Disabled
feed.NoMediaPlayer = f.NoMediaPlayer
feed.HideGlobally = f.HideGlobally
feed.AppriseServiceURLs = f.AppriseServiceURLs
return feed
}
@ -89,5 +91,6 @@ func NewFeedForm(r *http.Request) *FeedForm {
Disabled: r.FormValue("disabled") == "1",
NoMediaPlayer: r.FormValue("no_media_player") == "1",
HideGlobally: r.FormValue("hide_globally") == "1",
AppriseServiceURLs: r.FormValue("apprise_service_urls"),
}
}