1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-30 19:22:11 +00:00

feat(integration): add tags option for karakeep integration

fix missing comma

Move tags attachment to own function
This commit is contained in:
Christian Frommert 2025-09-28 20:37:05 +02:00
parent 8adcaed29e
commit 6ed12151d2
28 changed files with 143 additions and 17 deletions

View file

@ -457,14 +457,20 @@ func SendEntry(entry *model.Entry, userIntegrations *model.Integration) {
if userIntegrations.KarakeepEnabled {
slog.Debug("Sending entry to Karakeep",
slog.Int64("user_id", userIntegrations.UserID),
slog.String("user_tags", userIntegrations.KarakeepTags),
slog.Int64("entry_id", entry.ID),
slog.String("entry_url", entry.URL),
)
client := karakeep.NewClient(userIntegrations.KarakeepAPIKey, userIntegrations.KarakeepURL)
client := karakeep.NewClient(
userIntegrations.KarakeepAPIKey,
userIntegrations.KarakeepURL,
userIntegrations.KarakeepTags,
)
if err := client.SaveURL(entry.URL); err != nil {
slog.Error("Unable to send entry to Karakeep",
slog.Int64("user_id", userIntegrations.UserID),
slog.String("user_tags", userIntegrations.KarakeepTags),
slog.Int64("entry_id", entry.ID),
slog.String("entry_url", entry.URL),
slog.Any("error", err),