diff options
author | 2023-12-04 23:05:04 -0500 | |
---|---|---|
committer | 2023-12-04 20:05:04 -0800 | |
commit | e933fb11e95422b4859c41f81d56b041f68510fc (patch) | |
tree | 081cc91899ee0b6f2626f24432d4e4c8a896fd7b /internal/ui/form/integration.go | |
parent | 0666d98648d24796f0a30adebbd75bd839399234 (diff) | |
download | v2-e933fb11e95422b4859c41f81d56b041f68510fc.tar.gz v2-e933fb11e95422b4859c41f81d56b041f68510fc.tar.zst v2-e933fb11e95422b4859c41f81d56b041f68510fc.zip |
Add Omnivore integration
Diffstat (limited to 'internal/ui/form/integration.go')
-rw-r--r-- | internal/ui/form/integration.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/ui/form/integration.go b/internal/ui/form/integration.go index 2976ed6d..c232494f 100644 --- a/internal/ui/form/integration.go +++ b/internal/ui/form/integration.go @@ -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"), } } |