Fix NTFY markdown

Ensure the notification payload includes the "markdown" field set to true.
This commit is contained in:
Stécy Dubé
2023-11-07 08:55:36 -05:00
parent 88dbeb519b
commit d999959f60

View File

@@ -64,12 +64,14 @@ func (c *Client) Send(entry model.NotifEntry) error {
Title string `json:"title"`
Priority int `json:"priority"`
Tags []string `json:"tags"`
Markdown bool `json:"markdown"`
}{
Topic: c.cfg.Topic,
Message: string(body),
Title: string(title),
Priority: c.cfg.Priority,
Tags: c.cfg.Tags,
Markdown: true,
}); err != nil {
return err
}