mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
Fix NTFY markdown
Ensure the notification payload includes the "markdown" field set to true.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user