mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
Add Apprise integration
This commit is contained in:
parent
da0198cc0d
commit
bf4823bdbd
28 changed files with 193 additions and 4 deletions
|
@ -5,6 +5,7 @@ package integration // import "miniflux.app/integration"
|
|||
|
||||
import (
|
||||
"miniflux.app/config"
|
||||
"miniflux.app/integration/apprise"
|
||||
"miniflux.app/integration/espial"
|
||||
"miniflux.app/integration/instapaper"
|
||||
"miniflux.app/integration/linkding"
|
||||
|
@ -160,4 +161,16 @@ func PushEntry(entry *model.Entry, integration *model.Integration) {
|
|||
logger.Error("[Integration] push entry to telegram bot failed: %v", err)
|
||||
}
|
||||
}
|
||||
if integration.AppriseEnabled {
|
||||
logger.Debug("[Integration] Sending Entry %q for User #%d to apprise", entry.URL, integration.UserID)
|
||||
|
||||
client := apprise.NewClient(
|
||||
integration.AppriseServicesURL,
|
||||
integration.AppriseURL,
|
||||
)
|
||||
err := client.PushEntry(entry)
|
||||
if err != nil {
|
||||
logger.Error("[Integration] push entry to apprise failed: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue