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:
parent
b193bc212a
commit
459284ab96
26 changed files with 105 additions and 55 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue