mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
feat(integration): add LinkTaco service for saving articles
This commit is contained in:
parent
983291c78b
commit
4d656d2739
31 changed files with 939 additions and 5 deletions
|
@ -75,6 +75,17 @@ func (h *handler) updateIntegration(w http.ResponseWriter, r *http.Request) {
|
|||
integration.WebhookSecret = ""
|
||||
}
|
||||
|
||||
if integrationForm.LinktacoEnabled {
|
||||
if integrationForm.LinktacoAPIToken == "" || integrationForm.LinktacoOrgSlug == "" {
|
||||
sess.NewFlashErrorMessage(printer.Print("error.linktaco_missing_required_fields"))
|
||||
html.Redirect(w, r, route.Path(h.router, "integrations"))
|
||||
return
|
||||
}
|
||||
if integration.LinktacoVisibility == "" {
|
||||
integration.LinktacoVisibility = "PUBLIC"
|
||||
}
|
||||
}
|
||||
|
||||
err = h.store.UpdateIntegration(integration)
|
||||
if err != nil {
|
||||
html.ServerError(w, r, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue