Browse Source

feat(apprise): add title in notification request body

mrchi 1 year ago
parent
commit
3a18e5d205
1 changed files with 3 additions and 2 deletions
  1. 3 2
      internal/integration/apprise/apprise.go

+ 3 - 2
internal/integration/apprise/apprise.go

@@ -38,8 +38,9 @@ func (c *Client) SendNotification(entry *model.Entry) error {
 	}
 	}
 
 
 	requestBody, err := json.Marshal(map[string]any{
 	requestBody, err := json.Marshal(map[string]any{
-		"urls": c.servicesURL,
-		"body": message,
+		"urls":  c.servicesURL,
+		"body":  message,
+		"title": entry.Feed.Title,
 	})
 	})
 	if err != nil {
 	if err != nil {
 		return fmt.Errorf("apprise: unable to encode request body: %v", err)
 		return fmt.Errorf("apprise: unable to encode request body: %v", err)