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

feat(apprise): add title in notification request body

This commit is contained in:
mrchi 2024-12-01 22:04:34 +08:00 committed by Frédéric Guillot
parent c3ca603960
commit 3a18e5d205

View file

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