diff options
author | 2024-01-23 18:12:31 +0100 | |
---|---|---|
committer | 2024-01-25 18:04:14 -0800 | |
commit | 1e704468a50c53dc98c07f3d87805b6ca16ca919 (patch) | |
tree | 1b22985854ecbd1eb4f2f6c801c220bcf5189c73 /internal/ui/form/integration.go | |
parent | e8147f26b99871b60af15dcaca0c25a070ddbb15 (diff) | |
download | v2-1e704468a50c53dc98c07f3d87805b6ca16ca919.tar.gz v2-1e704468a50c53dc98c07f3d87805b6ca16ca919.tar.zst v2-1e704468a50c53dc98c07f3d87805b6ca16ca919.zip |
feat: add linkace service integration
Diffstat (limited to 'internal/ui/form/integration.go')
-rw-r--r-- | internal/ui/form/integration.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/ui/form/integration.go b/internal/ui/form/integration.go index c232494f..f456eb6d 100644 --- a/internal/ui/form/integration.go +++ b/internal/ui/form/integration.go @@ -54,6 +54,12 @@ type IntegrationForm struct { TelegramBotDisableWebPagePreview bool TelegramBotDisableNotification bool TelegramBotDisableButtons bool + LinkAceEnabled bool + LinkAceURL string + LinkAceAPIKey string + LinkAceTags string + LinkAcePrivate bool + LinkAceCheckDisabled bool LinkdingEnabled bool LinkdingURL string LinkdingAPIKey string @@ -126,6 +132,12 @@ func (i IntegrationForm) Merge(integration *model.Integration) { integration.TelegramBotDisableWebPagePreview = i.TelegramBotDisableWebPagePreview integration.TelegramBotDisableNotification = i.TelegramBotDisableNotification integration.TelegramBotDisableButtons = i.TelegramBotDisableButtons + integration.LinkAceEnabled = i.LinkAceEnabled + integration.LinkAceURL = i.LinkAceURL + integration.LinkAceAPIKey = i.LinkAceAPIKey + integration.LinkAceTags = i.LinkAceTags + integration.LinkAcePrivate = i.LinkAcePrivate + integration.LinkAceCheckDisabled = i.LinkAceCheckDisabled integration.LinkdingEnabled = i.LinkdingEnabled integration.LinkdingURL = i.LinkdingURL integration.LinkdingAPIKey = i.LinkdingAPIKey @@ -200,6 +212,12 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm { TelegramBotDisableWebPagePreview: r.FormValue("telegram_bot_disable_web_page_preview") == "1", TelegramBotDisableNotification: r.FormValue("telegram_bot_disable_notification") == "1", TelegramBotDisableButtons: r.FormValue("telegram_bot_disable_buttons") == "1", + LinkAceEnabled: r.FormValue("linkace_enabled") == "1", + LinkAceURL: r.FormValue("linkace_url"), + LinkAceAPIKey: r.FormValue("linkace_api_key"), + LinkAceTags: r.FormValue("linkace_tags"), + LinkAcePrivate: r.FormValue("linkace_is_private") == "1", + LinkAceCheckDisabled: r.FormValue("linkace_check_disabled") == "1", LinkdingEnabled: r.FormValue("linkding_enabled") == "1", LinkdingURL: r.FormValue("linkding_url"), LinkdingAPIKey: r.FormValue("linkding_api_key"), |