mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
Add Omnivore integration
This commit is contained in:
parent
0666d98648
commit
e933fb11e9
27 changed files with 250 additions and 21 deletions
|
@ -79,6 +79,9 @@ type IntegrationForm struct {
|
|||
WebhookSecret string
|
||||
RSSBridgeEnabled bool
|
||||
RSSBridgeURL string
|
||||
OmnivoreEnabled bool
|
||||
OmnivoreAPIKey string
|
||||
OmnivoreURL string
|
||||
}
|
||||
|
||||
// Merge copy form values to the model.
|
||||
|
@ -147,6 +150,9 @@ func (i IntegrationForm) Merge(integration *model.Integration) {
|
|||
integration.WebhookURL = i.WebhookURL
|
||||
integration.RSSBridgeEnabled = i.RSSBridgeEnabled
|
||||
integration.RSSBridgeURL = i.RSSBridgeURL
|
||||
integration.OmnivoreEnabled = i.OmnivoreEnabled
|
||||
integration.OmnivoreAPIKey = i.OmnivoreAPIKey
|
||||
integration.OmnivoreURL = i.OmnivoreURL
|
||||
}
|
||||
|
||||
// NewIntegrationForm returns a new IntegrationForm.
|
||||
|
@ -218,6 +224,9 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm {
|
|||
WebhookURL: r.FormValue("webhook_url"),
|
||||
RSSBridgeEnabled: r.FormValue("rssbridge_enabled") == "1",
|
||||
RSSBridgeURL: r.FormValue("rssbridge_url"),
|
||||
OmnivoreEnabled: r.FormValue("omnivore_enabled") == "1",
|
||||
OmnivoreAPIKey: r.FormValue("omnivore_api_key"),
|
||||
OmnivoreURL: r.FormValue("omnivore_url"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue