mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
feat: add linkace service integration
This commit is contained in:
parent
e8147f26b9
commit
1e704468a5
26 changed files with 347 additions and 34 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue