Skip to content

Commit

Permalink
Fix NTFY markdown
Browse files Browse the repository at this point in the history
Ensure the notification payload includes the "markdown" field set to true.
  • Loading branch information
stecydube committed Dec 4, 2023
1 parent 88dbeb5 commit d999959
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/notif/ntfy/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d999959

Please sign in to comment.