1
0
Fork 0
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:
Peter Sanchez 2025-08-20 21:35:33 -06:00 committed by GitHub
parent 983291c78b
commit 4d656d2739
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 939 additions and 5 deletions

View file

@ -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)