mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 21:33:22 +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"`
|
Title string `json:"title"`
|
||||||
Priority int `json:"priority"`
|
Priority int `json:"priority"`
|
||||||
Tags []string `json:"tags"`
|
Tags []string `json:"tags"`
|
||||||
|
Markdown bool `json:"markdown"`
|
||||||
}{
|
}{
|
||||||
Topic: c.cfg.Topic,
|
Topic: c.cfg.Topic,
|
||||||
Message: string(body),
|
Message: string(body),
|
||||||
Title: string(title),
|
Title: string(title),
|
||||||
Priority: c.cfg.Priority,
|
Priority: c.cfg.Priority,
|
||||||
Tags: c.cfg.Tags,
|
Tags: c.cfg.Tags,
|
||||||
|
Markdown: true,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user