1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Apprise Service Urls per feed

This commit is contained in:
fuchsrot 2023-08-26 09:16:41 +02:00 committed by Frédéric Guillot
parent 939a91e99d
commit 32d33104a4
27 changed files with 58 additions and 8 deletions

View file

@ -181,7 +181,7 @@ func PushEntries(entries model.Entries, integration *model.Integration) {
}
// PushEntry pushes an entry to third-party providers during feed refreshes.
func PushEntry(entry *model.Entry, integration *model.Integration) {
func PushEntry(entry *model.Entry, feed *model.Feed, integration *model.Integration) {
if integration.TelegramBotEnabled {
logger.Debug("[Integration] Sending Entry %q for User #%d to Telegram", entry.URL, integration.UserID)
@ -193,8 +193,15 @@ func PushEntry(entry *model.Entry, integration *model.Integration) {
if integration.AppriseEnabled {
logger.Debug("[Integration] Sending Entry %q for User #%d to apprise", entry.URL, integration.UserID)
var appriseServiceURLs string
if len(feed.AppriseServiceURLs) > 0 {
appriseServiceURLs = feed.AppriseServiceURLs
} else {
appriseServiceURLs = integration.AppriseServicesURL
}
client := apprise.NewClient(
integration.AppriseServicesURL,
appriseServiceURLs,
integration.AppriseURL,
)