Pinboard
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"),
}
}
diff --git a/internal/ui/integration_show.go b/internal/ui/integration_show.go
index d27ce412..813a11e1 100644
--- a/internal/ui/integration_show.go
+++ b/internal/ui/integration_show.go
@@ -93,6 +93,9 @@ func (h *handler) showIntegrationPage(w http.ResponseWriter, r *http.Request) {
WebhookSecret: integration.WebhookSecret,
RSSBridgeEnabled: integration.RSSBridgeEnabled,
RSSBridgeURL: integration.RSSBridgeURL,
+ OmnivoreEnabled: integration.OmnivoreEnabled,
+ OmnivoreAPIKey: integration.OmnivoreAPIKey,
+ OmnivoreURL: integration.OmnivoreURL,
}
sess := session.New(h.store, request.SessionID(r))