Explorar o código

feat(apprise): add title in notification request body

mrchi hai 1 ano
pai
achega
3a18e5d205
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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{
-		"urls": c.servicesURL,
-		"body": message,
+		"urls":  c.servicesURL,
+		"body":  message,
+		"title": entry.Feed.Title,
 	})
 	if err != nil {
 		return fmt.Errorf("apprise: unable to encode request body: %v", err)