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

feat(integration): add webhook URL per feed

This commit is contained in:
Wesley van Tilburg 2025-02-01 01:33:11 +01:00 committed by GitHub
parent b193bc212a
commit 459284ab96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 105 additions and 55 deletions

View file

@ -35,6 +35,7 @@ type FeedForm struct {
HideGlobally bool
CategoryHidden bool // Category has "hide_globally"
AppriseServiceURLs string
WebhookURL string
DisableHTTP2 bool
NtfyEnabled bool
NtfyPriority int
@ -66,6 +67,7 @@ func (f FeedForm) Merge(feed *model.Feed) *model.Feed {
feed.NoMediaPlayer = f.NoMediaPlayer
feed.HideGlobally = f.HideGlobally
feed.AppriseServiceURLs = f.AppriseServiceURLs
feed.WebhookURL = f.WebhookURL
feed.DisableHTTP2 = f.DisableHTTP2
feed.NtfyEnabled = f.NtfyEnabled
feed.NtfyPriority = f.NtfyPriority
@ -105,6 +107,7 @@ func NewFeedForm(r *http.Request) *FeedForm {
NoMediaPlayer: r.FormValue("no_media_player") == "1",
HideGlobally: r.FormValue("hide_globally") == "1",
AppriseServiceURLs: r.FormValue("apprise_service_urls"),
WebhookURL: r.FormValue("webhook_url"),
DisableHTTP2: r.FormValue("disable_http2") == "1",
NtfyEnabled: r.FormValue("ntfy_enabled") == "1",
NtfyPriority: ntfyPriority,