1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Add RSS-Bridge integration

This commit is contained in:
Ryan Stafford 2023-10-22 14:10:56 -04:00 committed by GitHub
parent 5e6c054345
commit 120aabfbce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 161 additions and 5 deletions

View file

@ -77,6 +77,8 @@ type IntegrationForm struct {
WebhookEnabled bool
WebhookURL string
WebhookSecret string
RSSBridgeEnabled bool
RSSBridgeURL string
}
// Merge copy form values to the model.
@ -143,6 +145,8 @@ func (i IntegrationForm) Merge(integration *model.Integration) {
integration.ShaarliAPISecret = i.ShaarliAPISecret
integration.WebhookEnabled = i.WebhookEnabled
integration.WebhookURL = i.WebhookURL
integration.RSSBridgeEnabled = i.RSSBridgeEnabled
integration.RSSBridgeURL = i.RSSBridgeURL
}
// NewIntegrationForm returns a new IntegrationForm.
@ -212,6 +216,8 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm {
ShaarliAPISecret: r.FormValue("shaarli_api_secret"),
WebhookEnabled: r.FormValue("webhook_enabled") == "1",
WebhookURL: r.FormValue("webhook_url"),
RSSBridgeEnabled: r.FormValue("rssbridge_enabled") == "1",
RSSBridgeURL: r.FormValue("rssbridge_url"),
}
}